Commit 7618c6c6 authored by Brandon Smith's avatar Brandon Smith

Respect hideResponseInput attribute

parent bce754b1
......@@ -171,8 +171,12 @@ class Authenticator(object):
json.dumps(attributes["u2fSignRequest"]),
str(message or ""))
if bool(attributes.get("hideResponseInput", True)):
prompt_type = self.pamh.PAM_PROMPT_ECHO_OFF
else:
prompt_type = self.pamh.PAM_PROMPT_ECHO_ON
message = self.pamh.Message(self.pamh.PAM_PROMPT_ECHO_OFF, challenge)
message = self.pamh.Message(prompt_type, challenge)
response = self.pamh.conversation(message)
chal_response = json.loads(response.resp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment