mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 17:47:38 +01:00
Fix login and register on old frontend when using a locale
This commit is contained in:
parent
bdaf498cc1
commit
f791f2b17d
@ -37,7 +37,7 @@
|
||||
if (user.length > 50) {
|
||||
return displayError('Username can be up to 50 characters, yours is ' + user.length);
|
||||
}
|
||||
const password = $('#inputPassword').val();
|
||||
const password = $('#inputPass').val();
|
||||
if (!password || password.length < 1) {
|
||||
return displayError('You need to specify a Password');
|
||||
}
|
||||
@ -46,7 +46,7 @@
|
||||
if (error.includes("HTTP 403")) {
|
||||
location.reload();
|
||||
}
|
||||
$('#inputPassword').val("");
|
||||
$('#inputPass').val("");
|
||||
return displayError('Login failed: ' + error);
|
||||
}
|
||||
if (json && json.success) {
|
||||
@ -93,7 +93,7 @@
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<input autocomplete="current-password" class="form-control form-control-user"
|
||||
id="inputPassword" placeholder="Password"
|
||||
id="inputPass" placeholder="Password"
|
||||
type="password">
|
||||
</div>
|
||||
<button class="btn bg-plan btn-user w-100" href="#" id="login-button">
|
||||
|
@ -58,7 +58,7 @@
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<input autocomplete="new-password" class="form-control form-control-user"
|
||||
id="inputPassword" placeholder="Password" type="password">
|
||||
id="inputPass" placeholder="Password" type="password">
|
||||
<div class="form-text" id="passwordHelpBlock">
|
||||
Password should be more than 8 characters, but there are no limitations.
|
||||
</div>
|
||||
@ -216,7 +216,7 @@
|
||||
if (user.length > 50) {
|
||||
return displayError('Username can be up to 50 characters, yours is ' + user.length);
|
||||
}
|
||||
const password = $('#inputPassword').val();
|
||||
const password = $('#inputPass').val();
|
||||
if (!password || password.length < 1) {
|
||||
return displayError('You need to specify a Password');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user