mirror of
https://github.com/YunoHost-Apps/monica_ynh.git
synced 2024-09-03 19:46:23 +02:00
Merge pull request #45 from YunoHost-Apps/User-to-set-a-password
Let the user set password
This commit is contained in:
commit
4de3d1ab4a
2 changed files with 10 additions and 1 deletions
|
@ -52,6 +52,15 @@
|
|||
},
|
||||
"example": "johndoe"
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"type": "password",
|
||||
"ask": {
|
||||
"en": "Set the administrator password",
|
||||
"fr": "Définissez le mot de passe administrateur"
|
||||
},
|
||||
"example": "Choose a password"
|
||||
},
|
||||
{
|
||||
"name": "is_public",
|
||||
"type": "boolean",
|
||||
|
|
|
@ -30,7 +30,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
|||
language=$YNH_APP_ARG_LANGUAGE
|
||||
random_key=$(ynh_string_random --length=32)
|
||||
email=$(ynh_user_get_info $admin 'mail')
|
||||
password=$(ynh_string_random --length=8)
|
||||
password=$YNH_APP_ARG_PASSWORD
|
||||
dav_support=$YNH_APP_ARG_DAV_SUPPORT
|
||||
signup=$YNH_APP_ARG_SIGNUP
|
||||
two_factor=$YNH_APP_ARG_TWO_FACTOR
|
||||
|
|
Loading…
Add table
Reference in a new issue