1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monica_ynh.git synced 2024-09-03 19:46:23 +02:00

Let the user set password

This commit is contained in:
ericgaspar 2020-11-02 15:56:35 +01:00
parent 54baafd2d5
commit 03d22e33b0
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 10 additions and 1 deletions

View file

@ -52,6 +52,15 @@
}, },
"example": "johndoe" "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", "name": "is_public",
"type": "boolean", "type": "boolean",

View file

@ -30,7 +30,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
language=$YNH_APP_ARG_LANGUAGE language=$YNH_APP_ARG_LANGUAGE
random_key=$(ynh_string_random --length=32) random_key=$(ynh_string_random --length=32)
email=$(ynh_user_get_info $admin 'mail') 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 dav_support=$YNH_APP_ARG_DAV_SUPPORT
signup=$YNH_APP_ARG_SIGNUP signup=$YNH_APP_ARG_SIGNUP
two_factor=$YNH_APP_ARG_TWO_FACTOR two_factor=$YNH_APP_ARG_TWO_FACTOR