mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] No need for fake password, no app use ,4,5
This commit is contained in:
parent
2ebef4ebb4
commit
cdb1d83eae
1 changed files with 1 additions and 9 deletions
|
@ -227,15 +227,7 @@ def user_create(operation_logger, username, firstname, lastname, domain, passwor
|
|||
"YNH_USER_LASTNAME": lastname
|
||||
}
|
||||
|
||||
# Put a random password instead of the true one to force
|
||||
# packagers to change this
|
||||
# FIXME: Remove this in future version
|
||||
chars = string.ascii_letters + string.digits + string.punctuation
|
||||
fake_password = "".join([random.choice(chars) for i in range(20)])
|
||||
fake_password += " num args are deprecated, please use YNH_USER_PASSWORD"
|
||||
hook_callback('post_user_create',
|
||||
args=[username, mail, fake_password, firstname, lastname],
|
||||
env=env_dict)
|
||||
hook_callback('post_user_create', args=[username, mail], env=env_dict)
|
||||
|
||||
# TODO: Send a welcome mail to user
|
||||
logger.success(m18n.n('user_created'))
|
||||
|
|
Loading…
Add table
Reference in a new issue