|
|
@ -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}) |
|
|
|