aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Fincham <michael@hotplate.co.nz>2018-04-25 14:38:05 +1200
committerGitHub <noreply@github.com>2018-04-25 14:38:05 +1200
commitb4ef3b28d546023747828152c9d33eeececa88db (patch)
treefb998d45aa0b2be862b776f3385bbe925b51063f
parent07b4e30fc66ba66fdbdbc886276dbd06dc6d5a5c (diff)
downloadpam-http-2fa-demo-b4ef3b28d546023747828152c9d33eeececa88db.tar.gz
pam-http-2fa-demo-b4ef3b28d546023747828152c9d33eeececa88db.tar.bz2
pam-http-2fa-demo-b4ef3b28d546023747828152c9d33eeececa88db.zip
Update pam_2fa.pyHEADmaster
-rw-r--r--pam_2fa.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pam_2fa.py b/pam_2fa.py
index ac355d2..24c5cd8 100644
--- a/pam_2fa.py
+++ b/pam_2fa.py
@@ -23,7 +23,7 @@ def pam_sm_authenticate(pamh, flags, argv):
try:
user_status = requests.get('https://accounts.example.com/pam/new/%s on %s as %s' % (pamh.service, pamh.rhost, user)).json()
- resp=pamh.conversation(pamh.Message(pamh.PAM_PROMPT_ECHO_OFF,"\nVerify 2FA at https://accounts.yolodyne.biz/pam/verify/%s\nPress enter once verification is complete.\n" % (str(user_status['key']), )))
+ pamh.conversation(pamh.Message(pamh.PAM_PROMPT_ECHO_OFF,"\nVerify 2FA at https://accounts.example.com/pam/verify/%s\nPress enter once verification is complete.\n" % (str(user_status['key']), )))
while True:
checked = requests.get('https://accounts.example.com/pam/check/%s' % str(user_status['key'])).json()