Browse Source

removed last logged in

master
Ubuntu 2 years ago
parent
commit
11acde3ffe
  1. 2
      smart_service/apis/app_user_login.py

2
smart_service/apis/app_user_login.py

@ -317,7 +317,7 @@ def grant_user_access(userdata=None, iid=None):
else:
frappe.db.sql(
'''UPDATE {4}.`tabApp Device` set last_logged_in= '{0}', user_name = '{2}', device_type = '{3}' where name = "{1}";'''.format(
'''UPDATE {4}.`tabApp Device` set last_login= '{0}', user_name = '{2}', device_type = '{3}' where name = "{1}";'''.format(
now(), iid, email, user_type_desc, current_db_name))
frappe.db.commit()
app_user2 = frappe.get_last_doc('App Users', filters={"email_id": email})

Loading…
Cancel
Save