1
0
Fork 0

fix(backend): Remove confirmation after signup

This commit is contained in:
joostdecock 2023-01-15 10:51:26 +01:00
parent fe568b6a16
commit 157fb6cce7
2 changed files with 11 additions and 0 deletions

View file

@ -357,6 +357,9 @@ UserModel.prototype.confirm = async function ({ body, params }) {
})
if (this.error) return this
// Before we return, remove the confirmation so it works only once
await this.Confirmation.unguardedDelete()
// Account is now active, let's return a passwordless login
return this.loginOk()
}