mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Make this a done so it doesn't swallow exceptions
This commit is contained in:
parent
155dd74a6f
commit
ebe6072225
@ -72,7 +72,7 @@ module.exports = {
|
|||||||
MatrixClientPeg.get().login('m.login.password', {
|
MatrixClientPeg.get().login('m.login.password', {
|
||||||
'user': that.refs.user.getDOMNode().value,
|
'user': that.refs.user.getDOMNode().value,
|
||||||
'password': that.refs.pass.getDOMNode().value
|
'password': that.refs.pass.getDOMNode().value
|
||||||
}).then(function(data) {
|
}).done(function(data) {
|
||||||
// XXX: we assume this means we're logged in, but there could be a next stage
|
// XXX: we assume this means we're logged in, but there could be a next stage
|
||||||
MatrixClientPeg.replace(Matrix.createClient({
|
MatrixClientPeg.replace(Matrix.createClient({
|
||||||
baseUrl: that.state.hs_url,
|
baseUrl: that.state.hs_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user