2016-10-28 273 views

回答

0

当然,也有一个current_user代理就可以使用,所以一个视图路线中,你可以只是做:

if current_user.is_authenticated: 
    return redirect(url_for('already_logged_in')) ## or whatever.