1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-04-03 18:20:29 +02:00

Allow whitespace in passwords

This commit is contained in:
Robbie Antenesse 2019-05-23 18:25:14 -06:00
parent 941ba76ac8
commit c8a01d854a

View file

@ -8,7 +8,7 @@ import { setCookie } from "../StackOverflow/cookie";
export function logIn() {
const email = document.getElementById('loginEmail').value.trim(),
password = document.getElementById('loginPassword').value.trim();
password = document.getElementById('loginPassword').value;
const loginErrorMessages = document.getElementById('loginErrorMessages');
let errorHTML = '';
@ -45,7 +45,7 @@ export function logIn() {
export function createAccount() {
const email = document.getElementById('createNewEmail').value.trim(),
password = document.getElementById('createNewPassword').value.trim(),
password = document.getElementById('createNewPassword').value,
confirm = document.getElementById('createNewConfirm').value.trim(),
publicName = document.getElementById('createNewPublicName').value.trim(),
allowEmail = document.getElementById('createNewAllowEmails').checked;