Exemple #1
0
def update_userinfo():
    if 'user' in session:
        user = UserService.updateUserInfo(session['user'])
    return json.dumps(user)
Exemple #2
0
def account():
    if 'user' in session:
        return render_template('account.html', user = UserService.getUserInfo(session['user']))
    return redirect(url_for('login_view'))
Exemple #3
0
def get_userinfo():
    if 'user' in session:
        user = UserService.getUserInfo(session['user'])
    return json.dumps(user)