1
0
Fork 0
mirror of synced 2024-07-01 04:30:59 +12:00

Fix failing tests

This commit is contained in:
Matej Bačo 2024-01-29 20:03:14 +00:00
parent 47fc6efb0d
commit 0a518cd47e
2 changed files with 2 additions and 1 deletions

View file

@ -2866,6 +2866,7 @@ App::post('/v1/account/verification/phone')
->desc('Create phone verification')
->groups(['api', 'account', 'auth'])
->label('scope', 'account')
->label('auth.type', 'phone')
->label('event', 'users.[userId].verification.[tokenId].create')
->label('audits.event', 'verification.create')
->label('audits.resource', 'user/{response.userId}')

View file

@ -365,7 +365,7 @@ App::init()
break;
default:
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Unsupported authentication route');
throw new Exception(Exception::USER_AUTH_METHOD_UNSUPPORTED, 'Unsupported authentication type: ' . $route->getLabel('auth.type', ''));
break;
}
});