Merge pull request #410 from matrix-org/rav/use_server_device_id
Use server-generated deviceId
This commit is contained in:
commit
33e9abe421
4 changed files with 22 additions and 14 deletions
|
@ -336,6 +336,7 @@ class Login extends Signup {
|
|||
}).then((creds) => {
|
||||
return {
|
||||
userId: creds.user_id,
|
||||
deviceId: creds.device_id,
|
||||
accessToken: creds.access_token,
|
||||
homeserverUrl: this._hsUrl,
|
||||
identityServerUrl: this._isUrl,
|
||||
|
@ -371,6 +372,7 @@ class Login extends Signup {
|
|||
homeserverUrl: self._hsUrl,
|
||||
identityServerUrl: self._isUrl,
|
||||
userId: data.user_id,
|
||||
deviceId: data.device_id,
|
||||
accessToken: data.access_token
|
||||
});
|
||||
}, function(error) {
|
||||
|
@ -394,6 +396,7 @@ class Login extends Signup {
|
|||
homeserverUrl: self._fallbackHsUrl,
|
||||
identityServerUrl: self._isUrl,
|
||||
userId: data.user_id,
|
||||
deviceId: data.device_id,
|
||||
accessToken: data.access_token
|
||||
});
|
||||
}, function(fallback_error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue