Fix enums for API changes
This commit is contained in:
parent
4b085ce3c6
commit
98f4178c39
1 changed files with 7 additions and 12 deletions
|
@ -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':
|
||||||
|
|
Loading…
Reference in a new issue