nearform / udaru

Open source Access Manager for node.js
https://nearform.github.io/udaru
MIT License
124 stars 19 forks source link

Cannot use email as user id #557

Closed golf-x closed 5 years ago

golf-x commented 6 years ago

Cannot use email as user id due to validation

child \"id\" fails because [\"id\" with value \"name@emaill\" fails to match the required pattern: /^[A-Za-z0-9_-]+$/]

Is there anyway to config this validation so email can be used as user id ?

mihaidma commented 5 years ago

you are right @sarawut-p the ids are limited to that pattern. These are Joi validations and there is no way to change from outside. No plans for now to allow emails as ids.

One option for now is to store the email in the user metadata field.