mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
Fix email confirmation (#3316)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user