Make username field unique in users-permissions

If anyone else is interested:

I just added a unique index on the username column in the up_users table. I can now handle the error “Username already taken” (Postgres) thrown in the register REST call.

1 Like