|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
@ -24,7 +23,7 @@ $multiauth = false;
|
|
|
|
|
$change_password = false;
|
|
|
|
|
if ($VARS['progress'] == "1") {
|
|
|
|
|
engageRateLimit();
|
|
|
|
|
if (!RECAPTCHA_ENABLED || (RECAPTCHA_ENABLED && verifyReCaptcha($VARS['g-recaptcha-response']))) {
|
|
|
|
|
if (!CAPTCHA_ENABLED || (CAPTCHA_ENABLED && verifyCaptcheck($VARS['captcheck_session_code'], $VARS['captcheck_selected_answer'], CAPTCHA_SERVER . "/api.php"))) {
|
|
|
|
|
$autherror = "";
|
|
|
|
|
if (user_exists($VARS['username'])) {
|
|
|
|
|
$status = get_account_status($VARS['username'], $error);
|
|
|
|
@ -149,8 +148,8 @@ if ($VARS['progress'] == "1") {
|
|
|
|
|
<link href="static/css/font-awesome.min.css" rel="stylesheet">
|
|
|
|
|
<link href="static/css/material-color/material-color.min.css" rel="stylesheet">
|
|
|
|
|
<link href="static/css/app.css" rel="stylesheet">
|
|
|
|
|
<?php if (RECAPTCHA_ENABLED) { ?>
|
|
|
|
|
<script src='https://www.google.com/recaptcha/api.js'></script>
|
|
|
|
|
<?php if (CAPTCHA_ENABLED) { ?>
|
|
|
|
|
<script src="<?php echo CAPTCHA_SERVER ?>/captcheck.dist.js"></script>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
@ -202,8 +201,8 @@ if ($VARS['progress'] == "1") {
|
|
|
|
|
?>
|
|
|
|
|
<input type="text" class="form-control" name="username" placeholder="<?php lang("username"); ?>" required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus /><br />
|
|
|
|
|
<input type="password" class="form-control" name="password" placeholder="<?php lang("password"); ?>" required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /><br />
|
|
|
|
|
<?php if (RECAPTCHA_ENABLED) { ?>
|
|
|
|
|
<div class="g-recaptcha" data-sitekey="<?php echo RECAPTCHA_SITE_KEY; ?>"></div>
|
|
|
|
|
<?php if (CAPTCHA_ENABLED) { ?>
|
|
|
|
|
<div class="captcheck_container" data-stylenonce="<?php echo $SECURE_NONCE; ?>"></div>
|
|
|
|
|
<br />
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<input type="hidden" name="progress" value="1" />
|
|
|
|
|