mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Fix email confirmation (#3316)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
2dfe0f330c
commit
eec4f67335
@ -229,7 +229,9 @@ async function getAccountInfoByToken (db: Db, productId: string, token: string):
|
||||
if (account === null) {
|
||||
throw new PlatformError(new Status(Severity.ERROR, accountPlugin.status.AccountNotFound, { account: email }))
|
||||
}
|
||||
return toAccountInfo(account)
|
||||
const res = toAccountInfo(account)
|
||||
res.confirmed = res.confirmed ?? true
|
||||
return res
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user