diff --git a/app/src/api/services/user.ts b/app/src/api/services/user.ts index c6cbc74e..0eba9e3f 100644 --- a/app/src/api/services/user.ts +++ b/app/src/api/services/user.ts @@ -106,7 +106,7 @@ async function getUserById(id: string) { async function getUserByEmail(email: string) { try { - return db.one( + return await db.one( `SELECT user_id, username, email FROM @@ -123,7 +123,7 @@ async function getUserByEmail(email: string) { async function getNewUserAPIKey(id: string) { try{ - return db.one( + return await db.one( `UPDATE users SET diff --git a/app/src/frontend/user/forgotten-password.tsx b/app/src/frontend/user/forgotten-password.tsx index 678132e4..c11bbe61 100644 --- a/app/src/frontend/user/forgotten-password.tsx +++ b/app/src/frontend/user/forgotten-password.tsx @@ -62,7 +62,7 @@ export default class ForgottenPassword extends React.Component<{}, ForgottenPass {this.state.success ? - `A password reset link has been sent to ${this.state.emailUsed}. Please check your inbox.` : + `If the email address is registered on Colouring London, a password reset link will be sent to ${this.state.emailUsed}. Please check your inbox.` : null }