Skip to content

Commit

Permalink
Fix recovery link for login page virtualmin/virtualmin-password-recov…
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Oct 2, 2020
1 parent c177c91 commit c05290a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
6 changes: 2 additions & 4 deletions pam_login.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,8 @@ print '<button class="btn btn-primary" type="submit"><i class="fa fa-sign-in"></
if (!$in{'password'}) {
if ($text{'session_postfix'} =~ "href") {
my $link = get_link($text{'session_postfix'}, 'ugly');
print '<button onclick=\'window.open("' . $link->[0] . '", "' . $link->[1] .
'", "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=700,height=500");return false;\' class="btn btn-warning"><i class="fa fa-unlock"></i>&nbsp;&nbsp;'
. &theme_text('login_reset')
. '</button>' . "\n";
print '<a target="_blank" href=' .
$link->[0] . ' class="btn btn-warning"><i class="fa fa-unlock"></i>&nbsp;&nbsp;' . $link->[1] . '</a>' . "\n";
}
}

Expand Down
7 changes: 2 additions & 5 deletions session_login.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,8 @@ print '<button class="btn btn-primary" type="submit"><i class="fa fa-sign-in"></

if ($text{'session_postfix'} =~ "href") {
my $link = get_link($text{'session_postfix'}, 'ugly');

print '<button onclick=\'window.open("' . $link->[0] . '", "' . $link->[1] .
'", "toolbar=no,menubar=no,scrollbars=no,resizable=yes,width=700,height=500");return false;\' class="btn btn-warning"><i class="fa fa-unlock"></i>&nbsp;&nbsp;'
. &theme_text('login_reset')
. '</button>' . "\n";
print '<a target="_blank" href=' .
$link->[0] . ' class="btn btn-warning"><i class="fa fa-unlock"></i>&nbsp;&nbsp;' . $link->[1] . '</a>' . "\n";
}

print '</div>';
Expand Down
2 changes: 1 addition & 1 deletion theme.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
desc=Authentic Theme
longdesc=Webmin/Usermin/Virtualmin/Cloudmin theme based on Bootstrap and Font Awesome (https://github.com/authentic-theme/authentic-theme)
version=19.60-RC2
mversion=00
mversion=01
depends=1.955 1.803
webmin=1
usermin=1
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.

0 comments on commit c05290a

Please sign in to comment.