Anpassung Password und Permissions

This commit is contained in:
Beate Trenziok 2024-08-13 09:18:43 +02:00
parent 936040fcb1
commit 0bafeac13f

View File

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