Compare commits
2 Commits
654dfceaf0
...
d0ba096710
Author | SHA1 | Date | |
---|---|---|---|
d0ba096710 | |||
0d33b52243 |
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
__pycache__
|
@ -117,6 +117,10 @@ def register():
|
||||
if len(password) < 8:
|
||||
return 'Error: password is too short'
|
||||
|
||||
# Check if username has uppercase
|
||||
if username.islower() == False:
|
||||
return 'Error: uppercase characters in username are not allowed'
|
||||
|
||||
# Create a LUSER connection
|
||||
luser = LUSER(LDAPHOST,LDAPADMINNAME,LDAPPASS,USERBASE,ALTUSERBASE)
|
||||
# Try to add user
|
||||
|
Loading…
Reference in New Issue
Block a user