riverrun / openmaize

No longer maintained - was an Authentication library for Plug-based applications in Elixir
Other
206 stars 30 forks source link

Show minimum length in password error #59

Closed jayjun closed 8 years ago

jayjun commented 8 years ago

The error,

The password is too short

is too unhelpful.

Show the required length so the user can fix it in one try. Maybe,

The password is too short. At least #{min_length} characters.

or

The password should have at least #{min_length} characters

riverrun commented 8 years ago

That's cool - thanks for your help.