Skip to content

Commit 44b256e

Browse files
authored
fix: Use NoTwoFactorRequired annotation instead of attribute
Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 7054658 commit 44b256e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/Controller/AppPasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ public function confirmUserPassword(string $password): DataResponse {
201201
*
202202
* @return DataResponse<Http::STATUS_OK, array{apppassword: string}, array{}>
203203
* @throws OCSForbiddenException Creating app password is not allowed
204+
* @NoTwoFactorRequired
204205
*
205206
* 200: App password returned
206207
*/
207208
#[NoAdminRequired]
208-
#[NoTwoFactorRequired]
209209
#[ApiRoute(verb: 'GET', url: '/getapppassword-onetime', root: '/core')]
210210
public function getAppPasswordWithOneTimePassword(): DataResponse {
211211
// Only allow with one-time app passwords

0 commit comments

Comments
 (0)