Skip to content

Commit 37d5380

Browse files
jaapmarcusKristan Kenney
authored andcommitted
Last references to fname/lname in code
1 parent f4f9fd4 commit 37d5380

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

func/main.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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' ;;

install/deb/filemanager/filegator/backend/Services/Auth/Adapters/HestiaAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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('/');

web/reset/index.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@
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
}

0 commit comments

Comments
 (0)