PR review changes

This commit is contained in:
Matej Bačo
2024-02-02 11:21:44 +00:00
parent 769a582b72
commit 2f2008d188
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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}')
+1 -1
View File
@@ -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');
}
+1 -1
View File
@@ -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');
}