NewJerseyStyle / LitePolis

LitePolis is a refactored version of [Polis](https://github.com/compdemocracy/polis), built using Python and optimized for scalability and performance.
MIT License
2 stars 0 forks source link

Regular user do not need login #13

Open NewJerseyStyle opened 2 months ago

NewJerseyStyle commented 2 months ago

In stead of login and user role based access control, a better solution can be verification of email

if the email address it not verified, the votes and comments are not recorded if the email address is verified, the votes and comments are saved into database and the client do not need to provide email next time accessing the website

sequenceDiagram
    client->>server: vote
    client->>server: comment
    client->>server: vote
    client->>server: email address
    server->>client: API-key
    client->>server: vote
    client-->>server: [access verification link]
    server->>server: commit above votes and comments into database
    server->>server: remember the API-key for the same client
NewJerseyStyle commented 2 weeks ago

Need to test and verify the implementation