Display email address that invitee will be registered with.

Also add flash message for users who already have an account.
This commit is contained in:
Adam Shimali
2016-03-09 11:27:26 +00:00
parent 131d1bedba
commit acc7c6cda3
5 changed files with 15 additions and 1 deletions
+5
View File
@@ -45,6 +45,11 @@ def sign_in():
# Vague error message for login in case of user not known, locked, inactive or password not verified
flash('Username or password is incorrect')
invited_user = session.get('invited_user')
if invited_user:
message = 'You already have an account with GOV.UK Notify. Sign in to your account to accept this invitation.'
flash(message, 'default')
return render_template('views/signin.html', form=form)