FIX: Remove the last auth result after authenticating

This commit is contained in:
Robin Ward 2016-07-08 15:53:14 -04:00
parent c626558d36
commit 2cfb0d60a8
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ export default {
initialize() {
if (window.location.search.indexOf('authComplete=true') !== -1) {
const lastAuthResult = localStorage.getItem('lastAuthResult');
localStorage.removeItem('lastAuthResult');
if (lastAuthResult) {
Ember.run.next(() => Discourse.authenticationComplete(JSON.parse(lastAuthResult)));
}