From 4b981c00b95bbb970ec0b8c32e5b0fc52082841b Mon Sep 17 00:00:00 2001 From: gashapwn Date: Sun, 22 Nov 2020 06:24:41 +0000 Subject: [PATCH] added logic for req template --- app.py | 13 +++++++++++++ templates/req.html | 23 +++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 templates/req.html diff --git a/app.py b/app.py index 9b3e885..9322e89 100644 --- a/app.py +++ b/app.py @@ -15,6 +15,18 @@ def home2(name): def success(name): return "welcome %s" % name +def req(): + rt = { + "username": "bob", + "displayname": "bob", + "default to display name?": "no", + "email for account lockout / registration confirmation (optional)": "fuck no", + "SSH public key": "123", + "shell of choice": "/bin/bash", + "have you read the rules?": "lolyeah" + }; + return render_template("req.html", req_tab = rt) + def login(): if request.method == "POST": user = request.form["nm"] @@ -26,4 +38,5 @@ if __name__=="__main__": app.add_url_rule('/home2/', 'home2', home2) app.add_url_rule('/success/', 'success', success) app.add_url_rule('/login', 'login', login, methods = ['POST', 'GET']) + app.add_url_rule('/req', 'req', req, methods = ['POST', 'GET']) app.run(host="192.168.1.228",debug=True) diff --git a/templates/req.html b/templates/req.html new file mode 100644 index 0000000..2d481a8 --- /dev/null +++ b/templates/req.html @@ -0,0 +1,23 @@ +{%extends "layout.html"%} + +{%block content%} +

+ + + {% for key, value in req_tab.items() %} + + {% endfor %} +
{{ key }}{{ value }}
+

+ +

+A requested feature is to have to allow users to have a unicode username since unicode allows for more interesting aesthics +
+If you enter a unicode display name, the system will try to display your unicode name when possbile. It will also be your default in terminal prompt, chat and your tilde path +
+the linux os only sees your true ascii username. so your ssh login, file permissions etc will user your true username +
+feedback on this feature welcome +

+ +{%endblock%}