mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Merge pull request #121 from matrix-org/dbkr/fix_registration_guest_access
Fix registration: don't auto-log in as a guest if we have a URL from …
This commit is contained in:
commit
7301f53807
1 changed files with 4 additions and 0 deletions
|
@ -100,6 +100,10 @@ module.exports = React.createClass({
|
|||
console.log("Not registering as guest; email invite.");
|
||||
this._autoRegisterAsGuest = false;
|
||||
}
|
||||
else if (this.props.startingQueryParams.client_secret && this.props.startingQueryParams.sid) {
|
||||
console.log("Not registering as guest; registration.");
|
||||
this._autoRegisterAsGuest = false;
|
||||
}
|
||||
else {
|
||||
this._autoRegisterAsGuest = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue