only show mobile number on register from invite page if user is sms_auth

also clean up the way the form is invoked - it now populates from an
invited_user object
This commit is contained in:
Leo Hemsted
2017-11-14 15:53:38 +00:00
parent c8dbd819ef
commit 8c14113da5
5 changed files with 37 additions and 12 deletions

View File

@@ -354,7 +354,7 @@ def test_new_invited_user_verifies_and_added_to_service(
'password': 'longpassword',
'mobile_number': '+447890123456',
'name': 'Invited User',
# 'auth_type': 'sms_auth'
'auth_type': 'sms_auth'
}
response = client.post(url_for('main.register_from_invite'), data=data)
assert response.status_code == 302