You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
Use the guest access tokens sent in 3pid invite emails.
This commit is contained in:
@ -99,6 +99,18 @@ module.exports = React.createClass({
|
|||||||
console.log("Not registering as guest; registration.");
|
console.log("Not registering as guest; registration.");
|
||||||
this._autoRegisterAsGuest = false;
|
this._autoRegisterAsGuest = false;
|
||||||
}
|
}
|
||||||
|
else if (this.props.startingQueryParams.guest_user_id &&
|
||||||
|
this.props.startingQueryParams.guest_access_token)
|
||||||
|
{
|
||||||
|
this._autoRegisterAsGuest = false;
|
||||||
|
this.onLoggedIn({
|
||||||
|
userId: this.props.startingQueryParams.guest_user_id,
|
||||||
|
accessToken: this.props.startingQueryParams.guest_access_token,
|
||||||
|
homeserverUrl: this.props.config.default_hs_url,
|
||||||
|
identityServerUrl: this.props.config.default_is_url,
|
||||||
|
guest: true
|
||||||
|
});
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
this._autoRegisterAsGuest = true;
|
this._autoRegisterAsGuest = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user