From ac2f526f4986104e5f8c6fec0105d46f196c44b7 Mon Sep 17 00:00:00 2001 From: AlexTheGeek <28763288+AlexTheGeek@users.noreply.github.com> Date: Wed, 6 Dec 2023 16:43:12 +0100 Subject: [PATCH] Ajout authentification sur le register (tmp) --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 69636f4..fbeef72 100644 --- a/main.py +++ b/main.py @@ -117,6 +117,7 @@ def welcome(): ### User Routes ### ################### @app.route('/register', methods=['POST']) +@login_required def register(): data = request.get_json() hashed_password = PasswordHasher().hash(data['password'])