Skip to content

Commit 05e9ae5

Browse files
author
App Generator
committed
Minor updates - Texts
1 parent 1b002f9 commit 05e9ae5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

api/routes.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def post(self):
103103
user_exists = Users.get_by_email(_email)
104104
if user_exists:
105105
return {"success": False,
106-
"msg": "Email already exists"}, 400
106+
"msg": "Email already taken"}, 400
107107

108108
new_user = Users(username=_username, email=_email)
109109

@@ -133,11 +133,11 @@ def post(self):
133133

134134
if not user_exists:
135135
return {"success": False,
136-
"msg": "Sorry. This email does not exist."}, 400
136+
"msg": "This email does not exist."}, 400
137137

138138
if not user_exists.check_password(_password):
139139
return {"success": False,
140-
"msg": "Sorry. Wrong credentials."}, 400
140+
"msg": "Wrong credentials."}, 400
141141

142142
# create access token uwing JWT
143143
token = jwt.encode({'email': _email, 'exp': datetime.utcnow() + timedelta(minutes=30)}, BaseConfig.SECRET_KEY)
@@ -195,5 +195,4 @@ def post(self, current_user):
195195
self.set_jwt_auth_active(False)
196196
self.save()
197197

198-
return {"success": True,
199-
"msg": "JWT Token revoked successfully"}, 200
198+
return {"success": True}, 200

0 commit comments

Comments
 (0)