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

Private Voting in the UI #165

Open
jpaulet opened this issue May 14, 2024 · 0 comments
Open

Private Voting in the UI #165

jpaulet opened this issue May 14, 2024 · 0 comments

Comments

@jpaulet
Copy link
Member

jpaulet commented May 14, 2024

Add the new encryption SDK feature into the UI, by:

  • Read the voting information, if it's encrypted, show all the metadata with a content loader similar to: https://v2.chakra-ui.com/docs/components/skeleton
  • Scan the URL for the #password field, if it's present, use it to decrypt the metadata
  • If there's no #password field in the URL, directly show a modal, with the "Password" field (input password) explaining that it's a private voting process, that only invited people can access. Title: "Private Voting Process", Description: "Only invited people with the password can access the voting process information. Use the password provided by the organization or contact them to get the access code."
  • Once the user introduces the password, use it to decrypt the information, and store it locally to reuse later.
  • Check if the password is correct (verify that the metadata info is a valid JSON?) and show an error in case of a wrong password.
  • Make sure the "share URL" functionality, don't share the URL with the #password on it.
@elboletaire elboletaire transferred this issue from vocdoni/ui-scaffold May 14, 2024
@jpaulet jpaulet changed the title Encrypted Voting in the UI Private Voting in the UI Jul 23, 2024
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