Skip to content

Commit 6c08353

Browse files
committed
Dummy
1 parent 97f4549 commit 6c08353

File tree

7 files changed

+16
-12
lines changed

7 files changed

+16
-12
lines changed

apps/authentication/routes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,19 @@ def logout():
102102

103103
@login_manager.unauthorized_handler
104104
def unauthorized_handler():
105-
return render_template('home/page-403.html'), 403
105+
return render_template('pages/page-403.html'), 403
106106

107107

108108
@blueprint.errorhandler(403)
109109
def access_forbidden(error):
110-
return render_template('home/page-403.html'), 403
110+
return render_template('pages/page-403.html'), 403
111111

112112

113113
@blueprint.errorhandler(404)
114114
def not_found_error(error):
115-
return render_template('home/page-404.html'), 404
115+
return render_template('pages/page-404.html'), 404
116116

117117

118118
@blueprint.errorhandler(500)
119119
def internal_error(error):
120-
return render_template('home/page-500.html'), 500
120+
return render_template('pages/page-500.html'), 500

apps/home/routes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@ def index():
1414
return render_template('pages/index.html', segment='index')
1515

1616
@blueprint.route('/typography')
17+
@login_required
1718
def typography():
1819
return render_template('pages/typography.html')
1920

2021
@blueprint.route('/color')
22+
@login_required
2123
def color():
2224
return render_template('pages/color.html')
2325

2426
@blueprint.route('/icon-tabler')
27+
@login_required
2528
def icon_tabler():
2629
return render_template('pages/icon-tabler.html')
2730

2831
@blueprint.route('/sample-page')
32+
@login_required
2933
def sample_page():
3034
return render_template('pages/sample-page.html')
3135

apps/templates/accounts/password_change.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 class="text-secondary mt-5"><b>Change Password</b></h2>
1919
</div>
2020
</div>
2121
</div>
22-
<form action="{{ url_for('password_change_done') }}">
22+
<form action="{{ url_for('home_blueprint.password_change_done') }}">
2323
<div class="form-floating mb-3">
2424
<input type="email" class="form-control" id="floatingInput" placeholder="Old Password" />
2525
<label for="floatingInput">Old Password</label>

apps/templates/accounts/password_reset.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ <h2 class="text-secondary mt-5"><b>Reset Password</b></h2>
3030
</form>
3131
<hr />
3232
<h5 class="text-decoration-underline">
33-
<a class="ms-2" href="{{ url_for('login') }}">Login</a>
33+
<a class="ms-2" href="{{ url_for('authentication_blueprint.login') }}">Login</a>
3434
</h5>
3535
<h5 class="text-decoration-underline">
36-
<a class="ms-2" href="{{ url_for('register') }}">Register</a>
36+
<a class="ms-2" href="{{ url_for('authentication_blueprint.register') }}">Register</a>
3737
</h5>
3838
</div>
3939
</div>

apps/templates/accounts/password_reset_complete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2 class="text-secondary mt-5"><b>Password Changed</b></h2>
2121
</div>
2222
<hr />
2323
<h5 class="text-decoration-underline">
24-
<a class="ms-2" href="{{ url_for('login') }}">Login</a>
24+
<a class="ms-2" href="{{ url_for('authentication_blueprint.login') }}">Login</a>
2525
</h5>
2626
</div>
2727
</div>

apps/templates/accounts/password_reset_confirm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ <h2 class="text-secondary mt-5"><b>Change Password</b></h2>
3434
</form>
3535
<hr />
3636
<h5 class="text-decoration-underline">
37-
<a class="ms-2" href="{{ url_for('login') }}">Login</a>
37+
<a class="ms-2" href="{{ url_for('authentication_blueprint.login') }}">Login</a>
3838
</h5>
3939
<h5 class="text-decoration-underline">
40-
<a class="ms-2" href="{{ url_for('register') }}">Register</a>
40+
<a class="ms-2" href="{{ url_for('authentication_blueprint.register') }}">Register</a>
4141
</h5>
4242
</div>
4343
</div>

apps/templates/accounts/password_reset_done.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ <h5 class="text-decoration-underline">
2424
</div>
2525
<hr />
2626
<h5 class="text-decoration-underline">
27-
<a class="ms-2" href="{{ url_for('login') }}">Login</a>
27+
<a class="ms-2" href="{{ url_for('authentication_blueprint.login') }}">Login</a>
2828
</h5>
2929
<h5 class="text-decoration-underline">
30-
<a class="ms-2" href="{{ url_for('register') }}">Register</a>
30+
<a class="ms-2" href="{{ url_for('authentication_blueprint.register') }}">Register</a>
3131
</h5>
3232
</div>
3333
</div>

0 commit comments

Comments
 (0)