diff options
Diffstat (limited to 'webapp/components/login/login_controller.jsx')
-rw-r--r-- | webapp/components/login/login_controller.jsx | 4 |
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 |