fix(backend): Remove confirmation after signup
This commit is contained in:
parent
fe568b6a16
commit
157fb6cce7
2 changed files with 11 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue