Die gracefully on too short passwords.
Errietta Kostala [Mon, 26 Jan 2015 14:36:31 +0000 (14:36 +0000)]
lib/stemmaweb/Authentication/FormHandler.pm

index 04557ae..0129b13 100644 (file)
@@ -15,5 +15,16 @@ has_field id_token => (
     required => 0,
 );
 
+# This must match the min length in Text::Tradition::Directory!
+
+has_field password => (
+    type            => 'Password',
+    minlength       => 8,
+    required        => 1,
+    messages        => { required => 'Your password is required.' },
+    tags            => { no_errors => 1 },
+    wrapper_attr    => { id => 'field-password', },
+    inactive        => 1,
+);
 
 1;