scrypt async

This commit is contained in:
2023-09-21 22:00:06 +01:00
parent 3e0c4e5064
commit 8244441929
5 changed files with 44 additions and 38 deletions

View File

@ -300,11 +300,13 @@ export default function LoginPage() {
<AsyncButton onClick={() => setPin(true)}>
<FormattedMessage defaultMessage="Create Account" />
</AsyncButton>
{pin && <PinPrompt onResult={pin => {
{pin && <PinPrompt subTitle={<p>
<FormattedMessage defaultMessage="Enter a pin to encrypt your private key, you must enter this pin every time you open Snort." />
</p>} onResult={async pin => {
if (key) {
doLogin(pin);
await doLogin(pin);
} else {
makeRandomKey(pin);
await makeRandomKey(pin);
}
}} onCancel={() => setPin(false)} />}
{altLogins()}