Merge pull request #3273 from matrix-org/dbkr/dont_load_guest_session
Don't load guest sessions on post-registration login link
This commit is contained in:
commit
5f45bbd6b7
2 changed files with 15 additions and 3 deletions
|
@ -438,7 +438,7 @@ module.exports = React.createClass({
|
|||
_onLoginClickWithCheck: async function(ev) {
|
||||
ev.preventDefault();
|
||||
|
||||
const sessionLoaded = await Lifecycle.loadSession({});
|
||||
const sessionLoaded = await Lifecycle.loadSession({ignoreGuest: true});
|
||||
if (!sessionLoaded) {
|
||||
// ok fine, there's still no session: really go to the login page
|
||||
this.props.onLoginClick();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue