mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 06:35:35 +08:00
hopefully fix NPE on toLowerCase
This commit is contained in:
parent
063ab7e9b7
commit
672fbb2873
@ -303,7 +303,9 @@ module.exports = React.createClass({
|
||||
} : {};
|
||||
|
||||
return this._matrixClient.register(
|
||||
this.state.formVals.username.toLowerCase(),
|
||||
(this.state.formVals.username ?
|
||||
this.state.formVals.username.toLowerCase() :
|
||||
this.state.formVals.username),
|
||||
this.state.formVals.password,
|
||||
undefined, // session id: included in the auth dict already
|
||||
auth,
|
||||
|
Loading…
Reference in New Issue
Block a user