mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
PR feedback
This commit is contained in:
parent
5312a869e4
commit
b437a2559d
@ -158,7 +158,7 @@ export default class Login {
|
||||
deviceId: data.device_id,
|
||||
accessToken: data.access_token,
|
||||
});
|
||||
}, function(fallback_error) {
|
||||
}).catch((fallback_error) => {
|
||||
// throw the original error
|
||||
throw originalError;
|
||||
});
|
||||
@ -172,13 +172,13 @@ export default class Login {
|
||||
});
|
||||
return client.login('m.login.password', loginParamsLowercase).then(function(data) {
|
||||
return Promise.resolve({
|
||||
homeserverUrl: self._fallbackHsUrl,
|
||||
homeserverUrl: self._hsUrl,
|
||||
identityServerUrl: self._isUrl,
|
||||
userId: data.user_id,
|
||||
deviceId: data.device_id,
|
||||
accessToken: data.access_token,
|
||||
});
|
||||
}, function(fallback_error) {
|
||||
}).catch((fallback_error) => {
|
||||
// throw the original error
|
||||
throw originalError;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user