mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-07-01 05:00:57 +02:00
fixed master password leakage
This commit is contained in:
parent
6f06a55467
commit
5d830701c0
@ -41,6 +41,7 @@ export default function AuthContextProvider({children}: AuthContextProviderProps
|
|||||||
|
|
||||||
const logout = useCallback(async (forceLogout = true) => {
|
const logout = useCallback(async (forceLogout = true) => {
|
||||||
setUser(null)
|
setUser(null)
|
||||||
|
setDecryptionPassword(null)
|
||||||
|
|
||||||
if (forceLogout) {
|
if (forceLogout) {
|
||||||
await logoutUser()
|
await logoutUser()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user