mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 06:52:06 -05:00
Update the invitation expiry error message so that it is nicer to read.
This commit is contained in:
@@ -33,7 +33,9 @@ def get_invited_user_by_token(token):
|
||||
current_app.config['DANGEROUS_SALT'],
|
||||
max_age_seconds)
|
||||
except SignatureExpired:
|
||||
errors = {'invitation': ['Invitation has expired']}
|
||||
errors = {'invitation':
|
||||
['This invitation has expired please contact the person that invited you to invite you again']}
|
||||
print(errors)
|
||||
raise InvalidRequest(errors, status_code=400)
|
||||
|
||||
invited_user = get_invited_user_by_id(invited_user_id)
|
||||
|
||||
Reference in New Issue
Block a user