From 6452d9a9c1c36a29101747654a102095796d495b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 22 Dec 2024 16:13:14 -0500 Subject: [PATCH] fix query --- services/web/project/__init__.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 14c07bd..8ff5b43 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -296,6 +296,16 @@ def start_resetpass(): "data": None }, 500 +def send_resetpass_mail(signup_email): + msg = Message( + 'Reset your MERMS Account', + sender ='message@chiefsoft.com', + recipients = [signup_email,'ameye+merscopy@chiefsoft.com'] + ) + msg.body = 'Hello MERMS message sent for account verification http://localhost:8090/resetacc/JWT-djhgdhjgdhdggggd' + mail.send(msg) + + @app.route("/panel/account") @token_required @@ -370,7 +380,7 @@ def recent_actions(current_user): print( current_user["user"]["uid"]) user_id = current_user["user"]["id"] # FIND_USER_DETAIL= "SELECT id,uid,username,updated,email,account_name, firstname, lastname FROM members WHERE uid::text = '"+user_uid+"'" - RECENT_ACTIONS = "SELECT * FROM members_actions WHERE member_id = "+user_id+" ORDER by id DESC LIMIT 4" + RECENT_ACTIONS = "SELECT * FROM members_actions WHERE member_id = " + user_id + " ORDER by id DESC LIMIT 4" with connection: with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor: cursor.execute(RECENT_ACTIONS)