mirror of
https://github.com/itsdave-de/msp.git
synced 2025-05-06 15:35:12 +02:00
Anpassung Password und Permissions
This commit is contained in:
parent
936040fcb1
commit
0bafeac13f
@ -393,7 +393,8 @@ def get_act_stock(name):
|
||||
|
||||
def get_otrsdb_connection():
|
||||
settings = frappe.get_doc("OTRSConnect Settings")
|
||||
otrsdb = get_db(host=settings.otrs_host, user=settings.db_user, password=settings.db_password)
|
||||
password = settings.get_password("db_password")
|
||||
otrsdb = get_db(host=settings.otrs_host, user=settings.db_user, password=password)
|
||||
otrsdb.connect()
|
||||
otrsdb.use(settings.db_name)
|
||||
return otrsdb, settings
|
||||
|
Loading…
x
Reference in New Issue
Block a user