From 3ff2e578b537f8fca51c95275d1eab8218b5ccb0 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 10 Jun 2016 12:08:19 -0400 Subject: Stopped trimming passwords on login (#3304) --- webapp/components/login/login_controller.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp') diff --git a/webapp/components/login/login_controller.jsx b/webapp/components/login/login_controller.jsx index 27b1cc39b..ab8b49392 100644 --- a/webapp/components/login/login_controller.jsx +++ b/webapp/components/login/login_controller.jsx @@ -69,13 +69,13 @@ export default class LoginController extends React.Component { this.setState({loginId}); } - let password = this.refs.password.value; + const password = this.refs.password.value; if (password !== this.state.password) { this.setState({password}); } + // don't trim the password since we support spaces in passwords loginId = loginId.trim(); - password = password.trim(); if (!loginId) { // it's slightly weird to be constructing the message ID, but it's a bit nicer than triply nested if statements -- cgit v1.2.3-1-g7c22