Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bleeeana committed Dec 23, 2024
1 parent d3034ca commit 991dba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/app/routes/auth_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def login():
admin = Admin.objects(email=email).first()
client = Client.objects(email=email).first()


if admin and admin.password == password:
token = generate_token(str(admin.id))
return jsonify({"message": "Admin logged in successfully",
Expand Down

0 comments on commit 991dba8

Please sign in to comment.