Skip to content

Commit

Permalink
Add ability to set custom server name for login page
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Apr 16, 2024
1 parent c64c611 commit 53b110b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pam_login.cgi
Expand Up @@ -128,7 +128,9 @@ embed_logo();

# Login message
my $host;
if ($gconfig{'realname'}) {
if ($theme_config{'settings_login_page_server_name'}) {
$host = $theme_config{'settings_login_page_server_name'};
} elsif ($gconfig{'realname'}) {
$host = &get_system_hostname();
} else {
$host = get_env('server_name');
Expand Down
4 changes: 3 additions & 1 deletion session_login.cgi
Expand Up @@ -138,7 +138,9 @@ embed_logo();

# Login message
my $host;
if ($gconfig{'realname'}) {
if ($theme_config{'settings_login_page_server_name'}) {
$host = $theme_config{'settings_login_page_server_name'};
} elsif ($gconfig{'realname'}) {
$host = &get_display_hostname();
} else {
$host = get_env('server_name');
Expand Down

0 comments on commit 53b110b

Please sign in to comment.