summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-06-10 12:08:19 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-06-10 12:08:19 -0400
commit3ff2e578b537f8fca51c95275d1eab8218b5ccb0 (patch)
tree0f27c0f34af25f8f21bf10aa867c0f4cad933ed6 /webapp
parentf34a820a223c9ec7bfac5996b6245d364d25fe1a (diff)
downloadchat-3ff2e578b537f8fca51c95275d1eab8218b5ccb0.tar.gz
chat-3ff2e578b537f8fca51c95275d1eab8218b5ccb0.tar.bz2
chat-3ff2e578b537f8fca51c95275d1eab8218b5ccb0.zip
Stopped trimming passwords on login (#3304)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/login/login_controller.jsx4
1 files changed, 2 insertions, 2 deletions
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