From 1f852c559252359672228634fc8b738812ced31fda5f2d8869d7d469b0747267 Mon Sep 17 00:00:00 2001 From: n Date: Thu, 6 Feb 2025 21:02:32 -0600 Subject: [PATCH] start work on accounts --- src/toastbin/app.py | 4 ++++ src/toastbin/templates/login.j2 | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/toastbin/templates/login.j2 diff --git a/src/toastbin/app.py b/src/toastbin/app.py index 55bb7e4..c90ea88 100644 --- a/src/toastbin/app.py +++ b/src/toastbin/app.py @@ -14,4 +14,8 @@ def index(): def new(): return render_template('new.j2', instance=instance) +@app.route("/login", methods=['GET', 'POST']) +def login(): + return render_template('login.j2', instance=instance) + app.run(debug=True) diff --git a/src/toastbin/templates/login.j2 b/src/toastbin/templates/login.j2 new file mode 100644 index 0000000..2621811 --- /dev/null +++ b/src/toastbin/templates/login.j2 @@ -0,0 +1,26 @@ + + + +toastbin - {{ instance }} + + + +
+ home | new paste | explore +
+
+
+
+

+ log in to {{ instance }}. +

+
+ + +
+ + +
+ +
+