From 604fed77fb7a75bb39cda96b2f06438ce71ee86a Mon Sep 17 00:00:00 2001 From: user Date: Fri, 22 Mar 2024 15:00:01 +0100 Subject: password of the month --- src/ssh_login_attempts.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ssh_login_attempts.py') diff --git a/src/ssh_login_attempts.py b/src/ssh_login_attempts.py index cb5f477..3da31cc 100644 --- a/src/ssh_login_attempts.py +++ b/src/ssh_login_attempts.py @@ -37,6 +37,13 @@ logger.root.addHandler(stream_handler) app = flask.Flask(__name__, template_folder='templates', static_folder='static', static_url_path='') +@app.route("/password_of_the_month") +@app.route("/password of the month") +@app.route("/passwd") +def password_of_the_month(): + password = db_handler.get_password_of_the_month() + return password + @app.route("/") def index(): -- cgit v1.2.3