mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
PR review changes
This commit is contained in:
@@ -1213,7 +1213,7 @@ App::post('/v1/account/tokens/email')
|
||||
->desc('Create email token (OTP)')
|
||||
->groups(['api', 'account', 'auth'])
|
||||
->label('scope', 'sessions.write')
|
||||
->label('auth.type', 'emailOtp')
|
||||
->label('auth.type', 'email-otp')
|
||||
->label('audits.event', 'session.create')
|
||||
->label('audits.resource', 'user/{response.userId}')
|
||||
->label('audits.userId', '{response.userId}')
|
||||
|
||||
@@ -338,7 +338,7 @@ App::init()
|
||||
}
|
||||
break;
|
||||
|
||||
case 'emailOtp':
|
||||
case 'email-otp':
|
||||
if (($auths['emailOtp'] ?? true) === false) {
|
||||
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Email OTP authentication is disabled for this project');
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ App::init()
|
||||
}
|
||||
break;
|
||||
|
||||
case 'emailOtp':
|
||||
case 'email-otp':
|
||||
if (($auths['emailOtp'] ?? true) === false) {
|
||||
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Email OTP authentication is disabled for this project');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user