diff --git a/src/server/BreCal/impl/login.py b/src/server/BreCal/impl/login.py index cbcf864..21b46a6 100644 --- a/src/server/BreCal/impl/login.py +++ b/src/server/BreCal/impl/login.py @@ -14,7 +14,9 @@ def GetUser(options): hash = bcrypt.hashpw(options["password"].encode('utf-8'), bcrypt.gensalt( 12 )).decode('utf8') pooledConnection = local_db.getPoolConnection() commands = pydapper.using(pooledConnection) - data = commands.query("SELECT id, participant_id, first_name, last_name, user_name, user_email, user_phone, password_hash, api_key, created, modified FROM user WHERE user_name = ?username? OR user_email = ?username?", + data = commands.query("SELECT id, participant_id, first_name, last_name, user_name, user_email, user_phone, password_hash, " + + "api_key, notify_email, notify_whatsapp, notify_signal, notify_popup, created, modified FROM user " + + "WHERE user_name = ?username? OR user_email = ?username?", model=model.User, param={"username" : options["username"]}) # print(data) if len(data) == 1: