on master help sign in
Reset
commit19819c716158ce9aa4ea8b290dc0b552fb30533d authoriko <ilyakooo0@gmail.com> dateThu 28 Jul 2022, 18:17 (4 years ago) parent27aaecc
1 file changed+4−1
backend/Main.purs+4−1
backend/Main.purs+4−1
@@ -102,7 +102,10 @@ main = do
102102 ciphers <- traverse processCipher sync.ciphers
103103 liftEffect $ Elm.send app $ Bridge.LoadCiphers $ Bridge.Sub_LoadCiphers_List ciphers
104104 pure unit
105− Bridge.NeedsReset -> pure unit
105+ Bridge.NeedsReset -> do
106+ WebStorage.clear storage
107+ Elm.send app Bridge.Reset
108+ pure unit
106109 Bridge.SendMasterPassword masterPassword -> runElmAff app $ do
107110 flip runReaderT {app: app, storage: storage, crypto: services.crypto, cryptoFunctions: services.cryptoFunctions} $ do
108111 hash <- getOrReset storage MasterPasswordHashKey