Update references to login/signup templates
This commit is contained in:
@@ -16,7 +16,7 @@ def signup():
|
||||
db.session.commit()
|
||||
flash("Account created successfully. Please log in.", "success")
|
||||
return redirect(url_for('auth.login'))
|
||||
return render_template('reading/signup.html', form=form)
|
||||
return render_template('auth/signup.html', form=form)
|
||||
|
||||
@auth.route('/login', methods=['GET', 'POST'])
|
||||
def login():
|
||||
@@ -28,7 +28,7 @@ def login():
|
||||
flash("Logged in successfully.", "success")
|
||||
return redirect(url_for('main.dashboard'))
|
||||
flash("Invalid username or password.", "danger")
|
||||
return render_template('reading/login.html', form=form)
|
||||
return render_template('auth/login.html', form=form)
|
||||
|
||||
@auth.route('/logout')
|
||||
@login_required
|
||||
|
||||
Reference in New Issue
Block a user