Tweaked the wording of the expired invitation message.

This commit is contained in:
Pete Herlihy
2016-12-09 12:20:03 +00:00
committed by GitHub
parent eedc2fb43e
commit e97c3bcc73

View File

@@ -34,7 +34,7 @@ def get_invited_user_by_token(token):
max_age_seconds)
except SignatureExpired:
errors = {'invitation':
['This invitation has expired please contact the person that invited you to invite you again']}
['Your invitation to GOV.UK Notify has expired. Please ask the person that invited you to send you another one']}
raise InvalidRequest(errors, status_code=400)
invited_user = get_invited_user_by_id(invited_user_id)