Add feature flag to disable username confirmation

Fixes https://jira.coreos.com/browse/QUAY-914
This commit is contained in:
Joseph Schorr 2018-06-01 13:24:29 -04:00
parent 81ea73ce0d
commit b2262eaf46
8 changed files with 33 additions and 3 deletions

View file

@ -133,6 +133,7 @@ class FederatedUsers(object):
username,
set_password_notification=False,
email_required=self._requires_email,
confirm_username=features.USERNAME_CONFIRMATION,
prompts=prompts)
except model.InvalidEmailAddressException as iae:
return (None, iae.message)