fix: username and email validations
This commit is contained in:
@@ -74,7 +74,7 @@ def create_member_from_user(doc, method):
|
||||
if ( doc.username and username_exists(doc.username)) or not doc.username:
|
||||
username = create_username_from_email(doc.email)
|
||||
|
||||
elif len(doc.username) < 4:
|
||||
elif len(doc.username) < 4 and doc.send_welcome_email == 1:
|
||||
username = adjust_username(doc.username)
|
||||
|
||||
if username_exists(username):
|
||||
|
||||
Reference in New Issue
Block a user