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