Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save key in sessionStorage for easy repeated visits during the same session #14

Closed
Greenheart opened this issue Apr 28, 2021 · 1 comment

Comments

@Greenheart
Copy link
Owner

How it should work:

On DOMContentLoaded:

if sessionStorage.key:
  try decrypting (call decrypt as if the user had submitted the form immediately on pageload)
  if successful:
    show result
  else
    show regular password prompt like nothing happened

After successful decryption:

sessionStorage.key = key

then continue loading payload like normal
@Greenheart
Copy link
Owner Author

fixed in 4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant