forked from public/pyceo
No connection needed for create_member()
This commit is contained in:
parent
3bfa5002ab
commit
f0f65e4409
|
@ -120,10 +120,6 @@ def create_member(username, password, name, program):
|
||||||
See: create()
|
See: create()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# check connection
|
|
||||||
if not connected():
|
|
||||||
raise MemberException("not connected to LDAP and Kerberos")
|
|
||||||
|
|
||||||
# check username format
|
# check username format
|
||||||
if not username or not re.match(cfg['username_regex'], username):
|
if not username or not re.match(cfg['username_regex'], username):
|
||||||
raise InvalidArgument("username", username, "expected format %s" % repr(cfg['username_regex']))
|
raise InvalidArgument("username", username, "expected format %s" % repr(cfg['username_regex']))
|
||||||
|
|
Loading…
Reference in New Issue