mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
Fix alert accessibility
This commit is contained in:
parent
2dbb83c11b
commit
2011bc29dd
91 changed files with 510 additions and 414 deletions
|
@ -130,6 +130,8 @@ async function getUser (usernameOrEmail?: string, password?: string, bypassLogin
|
|||
checkUserValidityOrThrow(user)
|
||||
|
||||
if (CONFIG.SIGNUP.REQUIRES_EMAIL_VERIFICATION && user.emailVerified === false) {
|
||||
// Keep this message sync with the client
|
||||
// TODO: use custom server code
|
||||
throw new AccessDeniedError('User email is not verified.')
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue