realm / realm-loginkit

A generic interface for logging in to Realm Mobile Platform apps
Apache License 2.0
74 stars 21 forks source link

Add password rules #32

Open TimOliver opened 7 years ago

TimOliver commented 7 years ago

Some third party authentication providers (eg, Amazon Cognito) implement strict password policies, up to and including:

The reasoning for breaking the form validation logic out to the LoginCredentialsValidationProtocol protocol was for this reason, so extending the form validation logic should be quite straightforward.

Additionally, for a good user experience, inserting a label explaining the password rules would also be desired.