#!/usr/bin/perl # # Authentic Theme (https://github.com/authentic-theme/authentic-theme) # Copyright Ilia Rostovtsev <ilia@virtualmin.com> # Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE) # use strict; our (%in, %gconfig, %text, $pragma_no_cache, %theme_text, %theme_config); do($ENV{'THEME_ROOT'} . "/authentic-lib.pl"); $pragma_no_cache = 1; $ENV{'MINISERV_INTERNAL'} || die "Can only be called by miniserv.pl"; my $charset = &get_charset(); &PrintHeader($charset); print '<!DOCTYPE HTML>', "\n"; print '<html data-bgs="gainsboro" class="session_login">', "\n"; embed_login_head(); print '<body class="session_login">' . "\n"; print '<div class="container session_login">' . "\n"; if ($in{'expired'} == 2) { print '<div class="alert alert-info">' . "\n"; print '<i class ="fa fa-exclamation-triangle"></i> ' . $text{'password_temp'} . '' . "\n"; print '</div>' . "\n"; } else { print '<div class="alert alert-info">' . "\n"; print '<i class ="fa fa-exclamation-triangle"></i> ' . $text{'password_expired'} . '' . "\n"; print '</div>' . "\n"; } # Start of the form print "$text{'password_prefix'}\n"; print '<form method="post" target="_top" action="' . $gconfig{'webprefix'} . '/password_change.cgi" class="form-signin session_login clearfix" role="form" onsubmit="spinner()">' . "\n"; print ui_hidden("user", $in{'user'}); print ui_hidden("pam", $in{'pam'}); print ui_hidden("expired", $in{'expired'}); print '<i class="wbm-webmin"></i><h2 class="form-signin-heading"> <span>' . (&get_product_name() eq 'webmin' ? $theme_text{'theme_xhred_titles_wm'} : $theme_text{'theme_xhred_titles_um'} ) . '</span></h2>' . "\n"; # Process logo embed_logo(); # Login message my $host; if ($gconfig{'realname'}) { $host = &get_display_hostname(); } else { $host = get_env('server_name'); $host =~ s/:\d+//g; $host = &html_escape($host); } print '<p class="form-signin-paragraph">' . theme_text('theme_new_password_header') . ' <em><strong>' . $in{'user'} . '</strong></em></p>' . "\n"; print '<div class="input-group form-group">' . "\n"; print '<span class="input-group-addon"><i class="fa fa-fw fa-key"></i></span>' . "\n"; print '<input type="password" class="form-control session_login" name="old" autocomplete="off" autocorrect="off" placeholder="' . theme_text('password_old') . '">' . "\n"; print '</div>' . "\n"; print '<div class="input-group form-group">' . "\n"; print '<span class="input-group-addon"><i class="fa fa-fw fa-key-plus"></i></span>' . "\n"; print '<input type="password" class="form-control session_login" name="new1" autocomplete="off" autocorrect="off" placeholder="' . theme_text('password_new1') . '">' . "\n"; print '</div>' . "\n"; print '<div class="input-group form-group">' . "\n"; print '<span class="input-group-addon"><i class="fa fa-fw fa-key-plus"></i></span>' . "\n"; print '<input type="password" class="form-control session_login" name="new2" autocomplete="off" autocorrect="off" placeholder="' . theme_text('password_new2') . '">' . "\n"; print '</div>' . "\n"; print '<div class="form-group form-signin-group">'; print '<button class="btn btn-primary" type="submit" style="margin-top: 0 !important; width: 100%"><i class="fa fa-unlock"></i> ' . &theme_text('password_ok') . '</button>' . "\n"; print '<script>document.addEventListener("DOMContentLoaded", function(event) {var l=document.querySelector(".top-aprogress");l&&l.remove();var o=document.querySelector("input[name=\"old\"]");o&&o.focus();});function spinner(){var x=document.querySelector(".fa.fa-unlock"),s =\'<span class="cspinner_container" style="position: absolute; width: 18px; height: 14px; display: inline-block;"><span class="cspinner" style="margin-top: 0; margin-left: -23px;"><span class="cspinner-icon white small"></span></span></span>\';x.classList.add("invisible"); x.insertAdjacentHTML(\'afterend\', s);x.parentNode.classList.add("disabled");x.parentNode.disabled=true}</script>'; print '</div>'; print '</form>' . "\n"; print "$text{'password_postfix'}\n"; &footer();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
extensions | Folder | 0755 |
|
|
help | Folder | 0755 |
|
|
images | Folder | 0755 |
|
|
lang | Folder | 0755 |
|
|
modules | Folder | 0755 |
|
|
unauthenticated | Folder | 0755 |
|
|
401.cgi | File | 342 B | 0755 |
|
403.cgi | File | 342 B | 0755 |
|
404.cgi | File | 342 B | 0755 |
|
CHANGELOG.md | File | 77.62 KB | 0644 |
|
FUNDING.yml | File | 102 B | 0644 |
|
LICENSE | File | 1.04 KB | 0644 |
|
THEME.pgp | File | 3.04 KB | 0644 |
|
authentic-funcs.pl | File | 28.56 KB | 0644 |
|
authentic-init.pl | File | 64.46 KB | 0644 |
|
authentic-lib.pl | File | 99.71 KB | 0644 |
|
authentic.pl | File | 52.32 KB | 0644 |
|
config | File | 139 B | 0644 |
|
config.cgi | File | 6.52 KB | 0755 |
|
config_save.cgi | File | 2.14 KB | 0755 |
|
index.cgi | File | 309 B | 0755 |
|
File | 0 B | 0 |
|
|
File | 0 B | 0 |
|
|
manifest-webmin.json | File | 986 B | 0644 |
|
manifest.template | File | 920 B | 0644 |
|
mconfig.cgi | File | 6.57 KB | 0755 |
|
mconfig_save.cgi | File | 1.68 KB | 0755 |
|
navigation-lib.pl | File | 54.64 KB | 0644 |
|
pam_login.cgi | File | 6.71 KB | 0755 |
|
password_form.cgi | File | 4.07 KB | 0755 |
|
postinstall-usermin.pl | File | 264 B | 0755 |
|
postinstall.pl | File | 645 B | 0755 |
|
service-worker.js | File | 141 B | 0644 |
|
session_login.cgi | File | 8.55 KB | 0755 |
|
settings-backgrounds.cgi | File | 3.61 KB | 0755 |
|
settings-backgrounds_save.cgi | File | 1.16 KB | 0755 |
|
settings-editor_favorites_read.cgi | File | 897 B | 0755 |
|
settings-editor_favorites_write.cgi | File | 574 B | 0755 |
|
settings-editor_read.cgi | File | 2.4 KB | 0755 |
|
settings-editor_write.cgi | File | 973 B | 0755 |
|
settings-favorites_save.cgi | File | 632 B | 0755 |
|
settings-lib.pl | File | 651 B | 0644 |
|
settings-logos.cgi | File | 4.61 KB | 0755 |
|
settings-logos_save.cgi | File | 1.75 KB | 0755 |
|
stats.cgi | File | 8.38 KB | 0755 |
|
sysinfo.cgi | File | 6.4 KB | 0755 |
|
tconfig-lib.pl | File | 33.41 KB | 0644 |
|
tconfig.cgi | File | 6.1 KB | 0755 |
|
theme-update.sh | File | 8.08 KB | 0755 |
|
theme.info | File | 337 B | 0644 |
|
theme.info.no | File | 24 B | 0644 |
|
uconfig.cgi | File | 6.27 KB | 0755 |
|
uconfig_save.cgi | File | 1.99 KB | 0755 |
|
uninstall-usermin.pl | File | 170 B | 0755 |
|
uninstall.pl | File | 346 B | 0755 |
|
xhr-lib.pl | File | 10.22 KB | 0644 |
|
xhr.cgi | File | 355 B | 0755 |
|