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

No username validation on registration.... #95

Open
vlbee opened this issue Aug 17, 2018 · 0 comments
Open

No username validation on registration.... #95

vlbee opened this issue Aug 17, 2018 · 0 comments

Comments

@vlbee
Copy link

vlbee commented Aug 17, 2018

... meaning you can register multiple times with the same username. Consider making this a UNIQUE field in your database as a start :)

CREATE TABLE users (
    id SERIAL PRIMARY KEY,
    username VARCHAR(100) NOT NULL UNIQUE,
    is_admin BOOLEAN NOT NULL,
    pass VARCHAR(100) NOT NULL,
    email VARCHAR(100) NOT NULL
);
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