Skip to content

Commit

Permalink
Ajout authentification sur le register (tmp)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTheGeek committed Dec 6, 2023
1 parent 446ee94 commit ac2f526
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit ac2f526

Please sign in to comment.