Merge pull request #1085 from matrix-org/rav/clear_storage_on_login
Clear persistent storage on login and logout
This commit is contained in:
commit
9e70884415
4 changed files with 128 additions and 57 deletions
|
@ -1229,6 +1229,8 @@ module.exports = React.createClass({
|
|||
onReturnToGuestClick: function() {
|
||||
// reanimate our guest login
|
||||
if (this.state.guestCreds) {
|
||||
// TODO: this is probably a bit broken - we don't want to be
|
||||
// clearing storage when we reanimate the guest creds.
|
||||
Lifecycle.setLoggedIn(this.state.guestCreds);
|
||||
this.setState({guestCreds: null});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue