mirror of
https://github.com/itsdave-de/msp_remoteadmin.git
synced 2025-05-07 12:45:13 +02:00
use name insted
This commit is contained in:
parent
3bb96c90e9
commit
e5242ef709
@ -30,7 +30,7 @@ def create_session(doc, protocol):
|
|||||||
token = None
|
token = None
|
||||||
if token:
|
if token:
|
||||||
# Get credentials from IT User Account
|
# 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)
|
print(acc_doc)
|
||||||
username = acc_doc.username
|
username = acc_doc.username
|
||||||
password = acc_doc.get_password('password')
|
password = acc_doc.get_password('password')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user