Skip to content

Commit

Permalink
Merge pull request #87 from ImMin5/master
Browse files Browse the repository at this point in the history
Fix wrong manager load code
  • Loading branch information
ImMin5 authored Nov 23, 2023
2 parents 82051af + d28bf2d commit 03e33c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spaceone/identity/service/token_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def issue(self, params):
user_mfa = user_vo.mfa.to_dict() if user_vo.mfa else {}

if user_mfa.get('state', 'DISABLED') == 'ENABLED':
mfa_manager = MFAManager.get_manager_by_mfa_type(user_mfa.get('mfa_type'))
if verify_code:
token_manager.check_mfa_verify_code(user_id, domain_id, verify_code)
mfa_manager.check_mfa_verify_code(user_id, domain_id, verify_code)
else:
mfa_email = user_mfa['options'].get('email')
mfa_manager = MFAManager.get_manager_by_mfa_type(user_mfa.get('mfa_type'))
mfa_manager.send_mfa_authentication_email(user_id, domain_id, mfa_email, user_vo.language)
raise ERROR_MFA_REQUIRED(user_id=user_id)

Expand Down

0 comments on commit 03e33c2

Please sign in to comment.