We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3034ca commit 991dba8Copy full SHA for 991dba8
backend/app/routes/auth_routes.py
@@ -21,6 +21,7 @@ def login():
21
admin = Admin.objects(email=email).first()
22
client = Client.objects(email=email).first()
23
24
+
25
if admin and admin.password == password:
26
token = generate_token(str(admin.id))
27
return jsonify({"message": "Admin logged in successfully",
0 commit comments