Fixed invalid keys in SecretStorageAccess
This commit is contained in:
parent
46762809f1
commit
4e0707953c
1 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ function SecretStorageAccess({ onComplete }) {
|
||||||
|
|
||||||
if (!mountStore.getItem()) return;
|
if (!mountStore.getItem()) return;
|
||||||
if (!isCorrect) {
|
if (!isCorrect) {
|
||||||
setError(t(key ? 'SecretStorageAccess.incorrect_security_key' : 'SecretStorageAccess.incorrect_security_phrase'));
|
setError(t(key ? 'Organisms.SecretStorageAccess.incorrect_security_key' : 'Organisms.SecretStorageAccess.incorrect_security_phrase'));
|
||||||
setProcess(false);
|
setProcess(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ function SecretStorageAccess({ onComplete }) {
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!mountStore.getItem()) return;
|
if (!mountStore.getItem()) return;
|
||||||
setError(t(key ? 'SecretStorageAccess.incorrect_security_key' : 'SecretStorageAccess.incorrect_security_phrase'));
|
setError(t(key ? 'Organisms.SecretStorageAccess.incorrect_security_key' : 'Organisms.SecretStorageAccess.incorrect_security_phrase'));
|
||||||
setProcess(false);
|
setProcess(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -80,7 +80,7 @@ function SecretStorageAccess({ onComplete }) {
|
||||||
<form onSubmit={handleForm}>
|
<form onSubmit={handleForm}>
|
||||||
<Input
|
<Input
|
||||||
name="password"
|
name="password"
|
||||||
label={t(withPhrase ? 'SecretStorageAccess.security_phrase' : 'SecretStorageAccess.security_key')}
|
label={withPhrase ? t('Organisms.SecretStorageAccess.security_phrase') : t('Organisms.SecretStorageAccess.security_key')}
|
||||||
type="password"
|
type="password"
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
required
|
required
|
||||||
|
@ -89,7 +89,7 @@ function SecretStorageAccess({ onComplete }) {
|
||||||
{!process && (
|
{!process && (
|
||||||
<div className="secret-storage-access__btn">
|
<div className="secret-storage-access__btn">
|
||||||
<Button variant="primary" type="submit">{t('common.continue')}</Button>
|
<Button variant="primary" type="submit">{t('common.continue')}</Button>
|
||||||
{isPassphrase && <Button onClick={toggleWithPhrase}>{t(withPhrase ? 'SecretStorageAccess.use_security_key' : 'SecretStorageAccess.use_security_phrase')}</Button>}
|
{isPassphrase && <Button onClick={toggleWithPhrase}>{t(withPhrase ? 'Organisms.SecretStorageAccess.use_security_key' : 'Organisms.SecretStorageAccess.use_security_phrase')}</Button>}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue