Open davidkellerman opened 7 years ago
Actually, right now this module doesn't provide any registration view or support - it probably should, as a configurable option, and when it does should handle these errors - agree with helpful duplicate vs generic error messages.
The Waterline MongoDB adapter produces an error like this:
Not only is this ugly if reported to the user, but it potentially leaks sensitive information (the
salt
value, for example, although this probably isn't too awful).I've put explicit code into the 100mhl-platform to check for this case, but that seems like the "wrong" place for it.
We could check here in nxus-users for a name collision and deliver a custom error message. However, other database errors potentially could cause similar problems. So, maybe give a custom message for duplicate names, and generic message for other database errors?