mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-29 11:43:49 +00: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) {
|
if (account === null) {
|
||||||
throw new PlatformError(new Status(Severity.ERROR, accountPlugin.status.AccountNotFound, { account: email }))
|
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