Redirect from landing to dashboard if authenticated
This commit is contained in:
@@ -49,6 +49,8 @@ def logout():
|
||||
|
||||
@main.route('/', methods=['GET'])
|
||||
def landing():
|
||||
if current_user.is_authenticated:
|
||||
return redirect(url_for('main.dashboard'))
|
||||
return render_template('landing.html')
|
||||
|
||||
@main.route('/dashboard', methods=['GET', 'POST'])
|
||||
|
||||
Reference in New Issue
Block a user