check if password field present in basic_auth create_user
This commit is contained in:
parent
5784c12d79
commit
94d77e1fc1
@ -46,7 +46,7 @@ def get_user(form):
|
||||
|
||||
def create_user(registration_form):
|
||||
user = get_user(registration_form)
|
||||
if not user:
|
||||
if not user and 'password' in registration_form:
|
||||
user = User()
|
||||
user.username = registration_form.data['username']
|
||||
user.email = registration_form.data['email']
|
||||
|
Loading…
x
Reference in New Issue
Block a user