Current user
This commit is contained in:
@@ -231,7 +231,7 @@ def panel_account(current_user):
|
|||||||
@app.route("/panel/account/dash")
|
@app.route("/panel/account/dash")
|
||||||
@token_required
|
@token_required
|
||||||
def dashboard(current_user):
|
def dashboard(current_user):
|
||||||
print( current_user)
|
print( current_user["user"]["uid"])
|
||||||
FIND_USER_DETAIL= "SELECT id,uid,username,updated,email,account_name, firstname, lastname FROM members LIMIT 1"
|
FIND_USER_DETAIL= "SELECT id,uid,username,updated,email,account_name, firstname, lastname FROM members LIMIT 1"
|
||||||
with connection:
|
with connection:
|
||||||
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
||||||
|
|||||||
Reference in New Issue
Block a user