ben-willis / grey-jcr

Grey College JCR Website
6 stars 8 forks source link

Validate username when adding user to a role #107

Closed d-nagy closed 5 years ago

d-nagy commented 5 years ago

Currently someone can accidentally add a user to a role without giving a username. This enters the user '' into the user_roles table of the database, and messes everything up. Added a rejex check in the Roles service to prevent this.