[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: feat: optionally, take user from dat
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: feat: optionally, take user from database uri |
Date: |
Mon, 23 May 2022 16:12:37 +0200 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new a107c5e feat: optionally, take user from database uri
a107c5e is described below
commit a107c5e190fa9e652c5e95810ebb43640139683e
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon May 23 11:12:30 2022 -0300
feat: optionally, take user from database uri
---
talerbank/settings.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/talerbank/settings.py b/talerbank/settings.py
index e87da85..7532038 100644
--- a/talerbank/settings.py
+++ b/talerbank/settings.py
@@ -144,12 +144,19 @@ if not DB_URL.netloc:
HOST = None
else:
HOST = P["host"][0]
+ if ("user" not in P) or P["user"] == "":
+ USER = None
+ else:
+ USER = P["user"][0]
else:
HOST = DB_URL.netloc
if HOST:
DBCONFIG["HOST"] = HOST # Sockets directory.
+if USER:
+ DBCONFIG["USER"] = USER
+
DATABASES["default"] = DBCONFIG
# Password validation
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-bank] branch master updated: feat: optionally, take user from database uri,
gnunet <=