mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Fix registration: don't auto-log in as a guest if we have a URL from sydent.
This commit is contained in:
parent
640e87e7c5
commit
401d18bcc6
@ -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…
x
Reference in New Issue
Block a user