From c8a01d854a3ef5f4fe92b8f3f05a94d32a6662c4 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Thu, 23 May 2019 18:25:14 -0600 Subject: [PATCH] Allow whitespace in passwords --- src/js/account/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/account/login.js b/src/js/account/login.js index 9b5f00a..9da6be9 100644 --- a/src/js/account/login.js +++ b/src/js/account/login.js @@ -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;