Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MFA Bypass: Change the error returned (#1144)
When any user tries to bypass MFA for self, before setting up the secret key, currently "Operation Not Allowed" error is thrown. But the right error here should be "GenerateSecretKeyRequired". All other operaions was also returning the latter. Tested By: ''' PATCH -d '{"MFABypass":{"BypassTypes":["GoogleAuthenticator"]}}' https://${bmc}/redfish/v1/AccountService/Accounts/<username> -H "Content-Type: application/json" ''' Signed-off-by: Asmitha Karunanithi <[email protected]>
- Loading branch information