mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 19:33:52 +08:00
FIX: Remove the last auth result after authenticating
This commit is contained in:
@ -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)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user