Stopped trimming passwords on login (#3304)

Этот коммит содержится в:
Harrison Healey
2016-06-10 12:08:19 -04:00
коммит произвёл Joram Wilander
родитель f34a820a22
Коммит 3ff2e578b5

Просмотреть файл

@@ -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