passphrase validation
This commit is contained in:
@@ -21,7 +21,7 @@ export const getClientKey = () => {
|
||||
export const setClientKey = (passphrase: string) => {
|
||||
const calculatedClientKey = calculateClientKey(passphrase)
|
||||
const verified = verifyClientKey(calculatedClientKey)
|
||||
if (!user.value || !verified) return
|
||||
if (!user.value || !verified) return false
|
||||
const clientKeys = getClientKeysFromLocalStorage()
|
||||
clientKeys[user.value.uid] = calculatedClientKey
|
||||
localStorage.setItem('clientKeys', JSON.stringify(clientKeys))
|
||||
|
||||
Reference in New Issue
Block a user