Add value filtering to 2F::Register::Generic
Summary
Currently, it's not possible to force generic registrable 2F (email, sms, etc..) to follow a syntax rule (valid phone number, etc).
Design proposition
- We need to implement a regex check for registrable info, and check it on the server side
- The error message needs to be customizable
- An invalid value should not be fatal (cancel the whole registration process)
- Optionally, also implement a JS check?