1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +12:00

Fix enums for API changes

This commit is contained in:
Jake Barnby 2024-02-19 16:53:43 +13:00
parent 4b085ce3c6
commit 98f4178c39
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -125,17 +125,14 @@ abstract class Format
case 'verifyAuthenticator':
case 'deleteAuthenticator':
switch ($param) {
case 'factor':
return 'AuthenticatorFactor';
case 'provider':
return 'AuthenticatorProvider';
case 'type':
return 'AuthenticatorType';
}
break;
case 'createChallenge':
case 'verifyChallenge':
case 'create2FAChallenge':
switch ($param) {
case 'provider':
return 'AuthenticatorProvider';
case 'factor':
return 'AuthenticationFactor';
}
break;
}
@ -322,10 +319,8 @@ abstract class Format
break;
case 'deleteAuthenticator':
switch ($param) {
case 'factor':
return 'AuthenticatorFactor';
case 'provider':
return 'AuthenticatorProvider';
case 'type':
return 'AuthenticatorType';
}
break;
case 'createTarget':