1
0
Fork 0
mirror of synced 2024-07-06 15:11:21 +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 'verifyAuthenticator':
case 'deleteAuthenticator': case 'deleteAuthenticator':
switch ($param) { switch ($param) {
case 'factor': case 'type':
return 'AuthenticatorFactor'; return 'AuthenticatorType';
case 'provider':
return 'AuthenticatorProvider';
} }
break; break;
case 'createChallenge': case 'create2FAChallenge':
case 'verifyChallenge':
switch ($param) { switch ($param) {
case 'provider': case 'factor':
return 'AuthenticatorProvider'; return 'AuthenticationFactor';
} }
break; break;
} }
@ -322,10 +319,8 @@ abstract class Format
break; break;
case 'deleteAuthenticator': case 'deleteAuthenticator':
switch ($param) { switch ($param) {
case 'factor': case 'type':
return 'AuthenticatorFactor'; return 'AuthenticatorType';
case 'provider':
return 'AuthenticatorProvider';
} }
break; break;
case 'createTarget': case 'createTarget':