File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
install/deb/filemanager/filegator/backend/Services/Auth/Adapters Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -929,7 +929,6 @@ is_format_valid() {
929929 email_forward) is_email_format_valid " $arg " ;;
930930 exp) is_date_format_valid " $arg " ;;
931931 extentions) is_common_format_valid " $arg " ' extentions' ;;
932- fname) is_name_format_valid " $arg " " first name" ;;
933932 ftp_password) is_password_format_valid " $arg " ;;
934933 ftp_user) is_user_format_valid " $arg " " $arg_name " ;;
935934 host) is_object_format_valid " $arg " " $arg_name " ;;
@@ -940,11 +939,11 @@ is_format_valid() {
940939 ip_status) is_ip_status_format_valid " $arg " ;;
941940 job) is_int_format_valid " $arg " ' job' ;;
942941 key) is_user_format_valid " $arg " " $arg_name " ;;
943- lname) is_name_format_valid " $arg " " last name" ;;
944942 malias) is_user_format_valid " $arg " " $arg_name " ;;
945943 max_db) is_int_format_valid " $arg " ' max db' ;;
946944 min) is_cron_format_valid " $arg " $arg_name ;;
947945 month) is_cron_format_valid " $arg " $arg_name ;;
946+ name) is_name_format_valid " $arg " " name" ;;
948947 nat_ip) is_ip_format_valid " $arg " ;;
949948 netmask) is_ip_format_valid " $arg " ' netmask' ;;
950949 newid) is_int_format_valid " $arg " ' id' ;;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function transformUser($hstuser): User
5959 {
6060 $ user = new User ();
6161 $ user ->setUsername ($ this ->hestia_user );
62- $ user ->setName ($ this ->hestia_user . " ( " . $ hstuser ['FNAME ' ] . " " . $ hstuser [ ' LNAME ' ] . ") " );
62+ $ user ->setName ($ this ->hestia_user . " ( " . $ hstuser ['NAME ' ] . ") " );
6363 $ user ->setRole ('user ' );
6464 $ user ->setPermissions ($ this ->permissions );
6565 $ user ->setHomedir ('/ ' );
Original file line number Diff line number Diff line change 2525 exec ($ cmd ." " .$ v_user ." json " , $ output , $ return_var );
2626 $ data = json_decode (implode ('' , $ output ), true );
2727 $ rkey = $ data [$ user ]['RKEY ' ];
28- $ fname = $ data [$ user ]['FNAME ' ];
29- $ lname = $ data [$ user ]['LNAME ' ];
28+ $ name = $ data [$ user ]['NAME ' ];
3029 $ contact = $ data [$ user ]['CONTACT ' ];
3130 $ to = $ data [$ user ]['CONTACT ' ];
3231 $ subject = __ ('MAIL_RESET_SUBJECT ' ,date ("Y-m-d H:i:s " ));
3332 $ hostname = exec ('hostname ' );
3433 $ from = __ ('MAIL_FROM ' ,$ hostname );
35- if (!empty ($ fname )) {
36- $ mailtext = __ ('GREETINGS_GORDON_FREEMAN ' ,$ fname , $ lname );
34+ if (!empty ($ name )) {
35+ $ mailtext = __ ('GREETINGS_GORDON ' ,$ name );
3736 } else {
3837 $ mailtext = __ ('GREETINGS ' );
3938 }
You can’t perform that action at this time.
0 commit comments