mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] lisibility
This commit is contained in:
parent
ad285937f3
commit
d441290b2f
1 changed files with 2 additions and 2 deletions
|
@ -123,10 +123,10 @@ def user_create(auth, username, firstname, lastname, mail, password,
|
|||
raise MoulinetteError(errno.EEXIST, m18n.n('system_username_exists'))
|
||||
|
||||
# Check that the mail domain exists
|
||||
if mail[mail.find('@') + 1:] not in domain_list(auth)['domains']:
|
||||
if mail.split("@")[1] not in domain_list(auth)['domains']:
|
||||
raise MoulinetteError(errno.EINVAL,
|
||||
m18n.n('mail_domain_unknown',
|
||||
domain=mail[mail.find('@') + 1:]))
|
||||
domain=mail.split("@")[1]))
|
||||
|
||||
# Get random UID/GID
|
||||
uid_check = gid_check = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue