fix query
This commit is contained in:
@@ -296,6 +296,16 @@ def start_resetpass():
|
|||||||
"data": None
|
"data": None
|
||||||
}, 500
|
}, 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")
|
@app.route("/panel/account")
|
||||||
@token_required
|
@token_required
|
||||||
@@ -370,7 +380,7 @@ def recent_actions(current_user):
|
|||||||
print( current_user["user"]["uid"])
|
print( current_user["user"]["uid"])
|
||||||
user_id = current_user["user"]["id"]
|
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+"'"
|
# 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:
|
||||||
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
||||||
cursor.execute(RECENT_ACTIONS)
|
cursor.execute(RECENT_ACTIONS)
|
||||||
|
|||||||
Reference in New Issue
Block a user