Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ def login_user(provider):

@auth_routes.route('/verify-email', methods=['POST'])
def verify_email():
token = base64.b64decode(request.json['data']['token'])
try:
token = base64.b64decode(request.json['data']['token'])
except Exception:
return BadRequestError({'source': ''}, 'Invalid Token').respond()
s = get_serializer()

try:
Expand Down