Skip to content

Commit

Permalink
Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jona-samuel committed Jan 18, 2023
1 parent 2fd9852 commit 4311338
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion privacyidea/api/validate.py
Expand Up @@ -202,6 +202,7 @@ def offlinerefill():
@postpolicy(is_authorized, request=request)
@postpolicy(mangle_challenge_response, request=request)
@postpolicy(construct_radius_response, request=request)
@postpolicy(preferred_client_mode, request=request)
@postpolicy(multichallenge_enroll_via_validate, request=request)
@postpolicy(no_detail_on_fail, request=request)
@postpolicy(no_detail_on_success, request=request)
Expand All @@ -211,7 +212,6 @@ def offlinerefill():
@postpolicy(check_tokentype, request=request)
@postpolicy(check_serial, request=request)
@postpolicy(autoassign, request=request)
@postpolicy(preferred_client_mode, request=request)
@add_serial_from_response_to_g
@prepolicy(check_application_tokentype, request=request)
@prepolicy(pushtoken_wait, request=request)
Expand Down
1 change: 0 additions & 1 deletion privacyidea/lib/tokens/emailtoken.py
Expand Up @@ -542,7 +542,6 @@ def enroll_via_validate(cls, g, content, user_obj):
"type": token_obj.type,
"message": _("Please enter your new email address!")}
detail["multi_challenge"] = [chal]
detail.update({"preferred_client_mode": CLIENTMODE.INTERACTIVE})
detail.update(chal)

def enroll_via_validate_2nd_step(self, passw, options=None):
Expand Down
1 change: 0 additions & 1 deletion privacyidea/lib/tokens/hotptoken.py
Expand Up @@ -841,7 +841,6 @@ def enroll_via_validate(cls, g, content, user_obj):
"type": token_obj.type,
"message": _("Please scan the QR code!")}
detail["multi_challenge"] = [chal]
detail.update({"preferred_client_mode": CLIENTMODE.INTERACTIVE})
detail.update(chal)

def has_further_challenge(self, options=None):
Expand Down
1 change: 0 additions & 1 deletion privacyidea/lib/tokens/pushtoken.py
Expand Up @@ -1057,5 +1057,4 @@ def enroll_via_validate(cls, g, content, user_obj):
"type": token_obj.type,
"message": _("Please scan the QR code!")}
detail["multi_challenge"] = [chal]
detail.update({"preferred_client_mode": CLIENTMODE.POLL})
detail.update(chal)
1 change: 0 additions & 1 deletion privacyidea/lib/tokens/smstoken.py
Expand Up @@ -602,7 +602,6 @@ def enroll_via_validate(cls, g, content, user_obj):
"type": token_obj.type,
"message": _("Please enter your new phone number!")}
detail["multi_challenge"] = [chal]
detail.update({"preferred_client_mode": CLIENTMODE.INTERACTIVE})
detail.update(chal)

def enroll_via_validate_2nd_step(self, passw, options=None):
Expand Down

0 comments on commit 4311338

Please sign in to comment.