Skip to content

Commit

Permalink
Add improvements to login screen
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Apr 27, 2022
1 parent 33ae2e8 commit 19c5300
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions session_login.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ if ($in{'twofactor_msg'} && $miniserv{'twofactor_provider'}) {
print &ui_hidden('save', $in{'failed_save'});
print &ui_hidden('failed_twofactor_attempt', $in{'failed_twofactor_attempt'});
print '<div class="input-group form-group">' . "\n";
print '<span class="input-group-addon"><i class="fa fa-fw fa-qrcode"></i></span>' . "\n";
print
'<input type="text" class="form-control session_login" name="twofactor" autocomplete="off" autocorrect="off" placeholder="'
. &theme_text('theme_xhred_login_token')
. '" autofocus>' . "\n";
print '<span class="input-group-addon"><i class="fa fa-fw fa-qrcode"></i></span>' . "\n";
print '</div>' . "\n";
print '<div class="form-group form-signin-group">';
print '<button class="btn btn-info" type="submit"><i class="fa fa-qrcode"></i>&nbsp;&nbsp;' .
Expand All @@ -160,8 +160,6 @@ if ($in{'twofactor_msg'} && $miniserv{'twofactor_provider'}) {
} else {
print '<p class="form-signin-paragraph">' . &theme_text('login_message') . '<strong> ' . $host . '</strong></p>' . "\n";
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 ui_input(
{ 'name' => 'user',
'value' => $in{"failed"},
Expand All @@ -171,17 +169,18 @@ if ($in{'twofactor_msg'} && $miniserv{'twofactor_provider'}) {
"autocapitalize" => "none",
"placeholder" => $theme_text{'theme_xhred_login_user'} });

print '<span class="input-group-addon"><i class="fa fa-fw fa-user"></i></span>' . "\n";
print '</div>' . "\n";
print '<div class="input-group form-group">' . "\n";
print '<span class="input-group-addon"><i class="fa fa-fw fa-lock"></i></span>' . "\n";
print
'<input type="password" class="form-control session_login" name="pass" autocomplete="off" autocorrect="off" placeholder="'
. &theme_text('theme_xhred_login_pass')
. '"' . ($in{"failed"} ? ' autofocus' : '') . '>' . "\n";
print '<span class="input-group-addon"><i class="fa fa-fw fa2 fa2-key"></i></span>' . "\n";
print '</div>' . "\n";

if (!$gconfig{'noremember'}) {
print '<div class="input-group form-group">
print '<div class="input-group form-group form-group-remember">
<div class="wh-100p flex-wrapper flex-centered flex-start">
<span class="awcheckbox awobject solid primary"><input class="iawobject" name="save" value="1" id="save" type="checkbox"> <label class="lawobject" for="save"><span>'
. $theme_text{'login_save'} . '</span></label></span>
Expand Down
2 changes: 1 addition & 1 deletion unauthenticated/css/bundle.min.css

Large diffs are not rendered by default.

Binary file modified unauthenticated/css/bundle.min.css.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion unauthenticated/css/palettes/nightrider.min.css

Large diffs are not rendered by default.

Binary file modified unauthenticated/css/palettes/nightrider.min.css.gz
Binary file not shown.

0 comments on commit 19c5300

Please sign in to comment.