This commit is contained in:
asyncnomi 2023-01-09 00:10:18 +01:00
parent bcbe73bac2
commit 71228d0fcf

View file

@ -31,8 +31,8 @@ function show_page(id, historyPush) {
$("#login-button").click(function (e) {
var data = JSON.stringify({
user: $("#login").val(),
password: $("#password").val()
user: $("#login").val().trim(),
password: $("#password").val().trim()
});
$("#password").val('');
$.ajax({
@ -80,8 +80,8 @@ $("#login-button").click(function (e) {
$("#register-button").click(function (e) {
var data = JSON.stringify({
user: $("#register-user").val(),
password: $("#register-password").val()
user: $("#register-user").val().trim(),
password: $("#register-password").val().trim()
});
if( $("#register-password-confirm").val() != $("#register-password").val()) {
t = new TypeIt('#error-message-register', {