Restructure tempates directory

This commit is contained in:
Peter Stockings
2024-12-29 22:54:43 +11:00
parent 049e845d5b
commit 91b3ef0e7e
7 changed files with 5 additions and 5 deletions

View File

@@ -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('signup.html', form=form)
return render_template('reading/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('login.html', form=form)
return render_template('reading/login.html', form=form)
@auth.route('/logout')
@login_required