1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/humhub_ynh.git synced 2024-09-03 19:26:11 +02:00

Merge pull request #22 from YunoHost-Apps/better-user-get-info

Better way to get user info / drop reliance on ynh_get_plain_key
This commit is contained in:
Nils Van Zuijlen 2021-05-28 10:06:24 +02:00 committed by GitHub
commit 0680bf1fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,9 +137,9 @@ ynh_systemd_action --service_name=nginx --action=reload
ynh_script_progression --message="Finalizing installation..." --weight=2
admin_temp_pass=$(ynh_string_random 6)
admin_email=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key mail)
admin_firstname=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key firstname)
admin_lastname=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key lastname)
admin_email=$(ynh_user_get_info "$admin" mail)
admin_firstname=$(ynh_user_get_info "$admin" firstname)
admin_lastname=$(ynh_user_get_info "$admin" lastname)
ynh_local_curl "/index.php?r=installer/index/go"