mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge branch 'update-auth-labels' of https://github.com/appwrite/appwrite into update-auth-labels
This commit is contained in:
commit
77c4c5d294
2 changed files with 2 additions and 1 deletions
|
|
@ -2866,6 +2866,7 @@ App::post('/v1/account/verification/phone')
|
||||||
->desc('Create phone verification')
|
->desc('Create phone verification')
|
||||||
->groups(['api', 'account', 'auth'])
|
->groups(['api', 'account', 'auth'])
|
||||||
->label('scope', 'account')
|
->label('scope', 'account')
|
||||||
|
->label('auth.type', 'phone')
|
||||||
->label('event', 'users.[userId].verification.[tokenId].create')
|
->label('event', 'users.[userId].verification.[tokenId].create')
|
||||||
->label('audits.event', 'verification.create')
|
->label('audits.event', 'verification.create')
|
||||||
->label('audits.resource', 'user/{response.userId}')
|
->label('audits.resource', 'user/{response.userId}')
|
||||||
|
|
|
||||||
|
|
@ -365,7 +365,7 @@ App::init()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue