mirror of
https://github.com/itsdave-de/msp_remoteadmin.git
synced 2025-05-06 20:35:12 +02:00
debugs
This commit is contained in:
parent
e5242ef709
commit
adbacc04f6
@ -13,7 +13,7 @@ PROTOCOL_PORT = {
|
|||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def create_session(doc, protocol):
|
def create_session(doc, protocol):
|
||||||
# DEBUG
|
# DEBUG
|
||||||
print(doc)
|
print(f"Values from form: {doc}")
|
||||||
|
|
||||||
guaca_config = frappe.get_single('Remote Connections Settings')
|
guaca_config = frappe.get_single('Remote Connections Settings')
|
||||||
guacamole_url = f'{guaca_config.guacamole_server}/api/tokens'
|
guacamole_url = f'{guaca_config.guacamole_server}/api/tokens'
|
||||||
@ -31,7 +31,7 @@ def create_session(doc, protocol):
|
|||||||
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.name)
|
acc_doc = frappe.get_doc('IT User Account', doc.name)
|
||||||
print(acc_doc)
|
print(f"Print doc values: {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