Show More
@@ -263,7 +263,7 b' class ApiController(JSONRPCController):' | |||||
263 | if UserModel().get_by_email(email, case_insensitive=True): |
|
263 | if UserModel().get_by_email(email, case_insensitive=True): | |
264 | raise JSONRPCError("email `%s` already exist" % email) |
|
264 | raise JSONRPCError("email `%s` already exist" % email) | |
265 |
|
265 | |||
266 | if ldap_dn: |
|
266 | if Optional.extract(ldap_dn): | |
267 | # generate temporary password if ldap_dn |
|
267 | # generate temporary password if ldap_dn | |
268 | password = PasswordGenerator().gen_password(length=8) |
|
268 | password = PasswordGenerator().gen_password(length=8) | |
269 |
|
269 |
General Comments 0
You need to be logged in to leave comments.
Login now