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

Merge branch '566-after-logout-you-are-redirected-to-changepincode-page-randomly' into 'master'

Set window currentlyAuthenticatedIdentity when changePinCode

Closes dashboard#566

See merge request !58
parents 3c39f5e6 55580e1b
No related branches found
1 merge request!58Set window currentlyAuthenticatedIdentity when changePinCode
......@@ -578,6 +578,8 @@ const connection = Penpal.connectToParent({
if (identity) {
identity.pinCode = newPinCode;
await setIdentityInLocalStorage(identity);
window.currentlyAuthenticatedIdentity = identity;
window.currentlyLoadedIdentity = identity;
return encodeResponse("200", null, "Successfully changed pincode");
} else {
......
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