mirror of
https://github.com/itsdave-de/msp_remoteadmin.git
synced 2026-08-14 06:50:05 -03:00
use name insted
This commit is contained in:
@@ -30,7 +30,7 @@ def create_session(doc, protocol):
|
||||
token = None
|
||||
if token:
|
||||
# Get credentials from IT User Account
|
||||
acc_doc = frappe.get_doc('IT User Account', doc.title)
|
||||
acc_doc = frappe.get_doc('IT User Account', doc.name)
|
||||
print(acc_doc)
|
||||
username = acc_doc.username
|
||||
password = acc_doc.get_password('password')
|
||||
|
||||
Reference in New Issue
Block a user