Skip to content

Commit

Permalink
Fix PAM login screen to support new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Apr 27, 2022
1 parent 19c5300 commit 471b0b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pam_login.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,20 @@ print '<p class="form-signin-paragraph">' .
text($gconfig{'nohostname'} ? 'pam_mesg2' : 'pam_mesg', "<br><strong>$host</strong>") . "\n";
if (!$in{'password'}) {
print '<div class="input-group form-group">' . "\n";
print '<span class="input-group-addon"><i class="fa fa-fw fa-user"></i></span>' . "\n";
print
'<input type="text" class="form-control session_login pam_login" name="answer" autocomplete="off" autocorrect="off" autocapitalize="none" placeholder="'
. &theme_text('theme_xhred_login_user')
. '" ' . ' autofocus>' . "\n";
print '<span class="input-group-addon"><i class="fa fa-fw fa-user"></i></span>' . "\n";
print '</div>' . "\n";
} else {
print '<div class="input-group form-group">' . "\n";
print '<span class="input-group-addon"><i class="fa fa-fw fa-' .
($in{'question'} =~ /code/i ? 'qrcode' : 'lock') . '"></i></span>' . "\n";
print '<input type="' . ($in{'question'} =~ /code/i ? 'text' : 'password') .
'" class="form-control session_login pam_login" name="answer" autocomplete="off" autocorrect="off" placeholder="' .
($in{'question'} =~ /code/i ? theme_text('theme_xhred_login_passphrase') : theme_text('theme_xhred_login_pass')) .
'" autofocus>' . "\n";
print '<span class="input-group-addon"><i class="fa fa-fw fa-' .
($in{'question'} =~ /code/i ? 'qrcode' : ' fa2 fa2-key') . '"></i></span>' . "\n";
print '</div>' . "\n";
}

Expand Down

0 comments on commit 471b0b6

Please sign in to comment.