Stopped trimming passwords on login (#3304)
Этот коммит содержится в:
коммит произвёл
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
|
||||
|
||||
Ссылка в новой задаче
Block a user