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:
David Baker 2019-08-02 17:46:00 +01:00 committed by GitHub
commit 5f45bbd6b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View file

@ -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();