forked from Business/BinStack
Improve mobile integration, add autocorrect etc. flags to login fields
This commit is contained in:
parent
2770e96a8a
commit
5588ee494d
@ -118,8 +118,8 @@ if (checkLoginServer()) {
|
|||||||
|
|
||||||
if ($multiauth != true) {
|
if ($multiauth != true) {
|
||||||
?>
|
?>
|
||||||
<input type="text" class="form-control" name="username" placeholder="<?php lang("username"); ?>" required="required" autofocus /><br />
|
<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" /><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) { ?>
|
<?php if (RECAPTCHA_ENABLED) { ?>
|
||||||
<div class="g-recaptcha" data-sitekey="<?php echo RECAPTCHA_SITE_KEY; ?>"></div>
|
<div class="g-recaptcha" data-sitekey="<?php echo RECAPTCHA_SITE_KEY; ?>"></div>
|
||||||
<br />
|
<br />
|
||||||
@ -131,7 +131,7 @@ if (checkLoginServer()) {
|
|||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<?php lang("2fa prompt"); ?>
|
<?php lang("2fa prompt"); ?>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control" name="authcode" placeholder="<?php lang("authcode"); ?>" required="required" autocomplete="off" autofocus /><br />
|
<input type="text" class="form-control" name="authcode" placeholder="<?php lang("authcode"); ?>" required="required" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus /><br />
|
||||||
<input type="hidden" name="progress" value="2" />
|
<input type="hidden" name="progress" value="2" />
|
||||||
<input type="hidden" name="username" value="<?php echo $VARS['username']; ?>" />
|
<input type="hidden" name="username" value="<?php echo $VARS['username']; ?>" />
|
||||||
<?php
|
<?php
|
||||||
|
@ -13,6 +13,7 @@ require __DIR__ . "/../required.php";
|
|||||||
require __DIR__ . "/../lib/login.php";
|
require __DIR__ . "/../lib/login.php";
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
header('Access-Control-Allow-Origin: *');
|
||||||
|
|
||||||
// Allow ping check without authentication
|
// Allow ping check without authentication
|
||||||
if ($VARS['action'] == "ping") {
|
if ($VARS['action'] == "ping") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user