From e2d0e7a95ea2dc7081082ff85bfafd11fe1e54c1 Mon Sep 17 00:00:00 2001 From: aitzol Date: Fri, 24 Nov 2023 08:15:40 +0100 Subject: [PATCH] 2fa-1.2 --- app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app.py b/app.py index 91e0ba3..98d8c3f 100644 --- a/app.py +++ b/app.py @@ -523,16 +523,13 @@ def login_user_ldap(conf, username, password): # Note: raises LDAPUserNameIsMandatoryError when user_dn is None. with connect_ldap(conf, authentication=SIMPLE, user=user_dn, password=password) as c: c.bind() - print('USERDN:', user_dn) if is_trusted_device(conf, user_dn): newSession().set(get_user_data(user_dn, c)) - #newSession().get()['id'] = tools.session_id() newSession().data['id'] = tools.session_id() - print(newSession().data) #update timestamp + ip address update_login_info(conf, user_dn) LOG.debug("%s logged in to %s" % (username, conf['base'])) - #check if exists 2fa qr image + #generate qr if it doenst exists when 2fa enable if(newSession().get()['secureAuth']): tools.gen_qr(newSession().get()['authToken'])