Skip to content
Snippets Groups Projects
Commit 6084a1e7 authored by Gospodin Bodurov's avatar Gospodin Bodurov
Browse files

Merge branch '522-do-not-display-pincode-view-while-loading-the-dashboard' into 'master'

Create NotAuthenticated event

Closes dashboard#522

See merge request !43
parents a0aeb3ef 2e43cf71
No related branches found
No related tags found
1 merge request!43Create NotAuthenticated event
...@@ -1169,6 +1169,8 @@ connection.promise.then(parent => { ...@@ -1169,6 +1169,8 @@ connection.promise.then(parent => {
localStorage.getItem("token") === null || localStorage.getItem("token") === null ||
localStorage.getItem("authenticatedIdentity") === null localStorage.getItem("authenticatedIdentity") === null
) { ) {
const event = createEvent("", "NotAuthenticated");
parent.onEvent(event);
localStorage.removeItem("uuid"); localStorage.removeItem("uuid");
localStorage.removeItem("token"); localStorage.removeItem("token");
localStorage.removeItem("authenticatedIdentity"); localStorage.removeItem("authenticatedIdentity");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment