Showing 5 changed files with 4 additions and 18 deletions
+1
CHANGES
... ...
@@ -2,6 +2,7 @@
2 2
   - add show_ignore_space_change_link option to show --ignore-space-change page easily
3 3
   - add --ignore-space-change feature in diff page by using w= query string
4 4
     for example, http://some.com/kimoto/gitprep_t/commit/3cf14ade5e28ee0cd83b9a3b1e1c332aed66df53?w=
5
+  - remove password length limit
5 6
 1.9.2
6 7
   - fix atom feed entry url bug
7 8
 1.9.1
+1 -2
templates/auto/_admin/user/create.html.ep
... ...
@@ -17,8 +17,7 @@
17 17
       ],
18 18
       password => [
19 19
         ['not_blank' => 'Password is empty.'],
20
-        ['ascii' => 'Password contain invalid character.'],
21
-        [{'length' => {max => 20}} => 'Password is too long.']
20
+        ['ascii' => 'Password contain invalid character.']
22 21
       ],
23 22
       {password_check => [qw/password password2/]}
24 23
         => {copy => 0}
+1 -2
templates/auto/_start.html.ep
... ...
@@ -23,8 +23,7 @@
23 23
       my $rule = [
24 24
         password => [
25 25
           ['not_blank' => 'Password is empty.'],
26
-          ['ascii' => 'Password contains invalid character.'],
27
-          [{'length' => {max => 20}} => 'Password is too long.']
26
+          ['ascii' => 'Password contains invalid character.']
28 27
         ],
29 28
         {password_check => [qw/password password2/]}
30 29
           => {copy => 0}
+1 -2
templates/auto/reset-password.html.ep
... ...
@@ -31,8 +31,7 @@
31 31
     my $rule = [
32 32
       password => [
33 33
         ['not_blank' => 'Password is empty.'],
34
-        ['ascii' => 'Password contains invalid character.'],
35
-        [{'length' => {max => 20}} => 'Password is too long.']
34
+        ['ascii' => 'Password contains invalid character.']
36 35
       ],
37 36
       {password_check => [qw/password password2/]}
38 37
         => {copy => 0}
-12
xt/user.t
... ...
@@ -53,10 +53,6 @@ note 'Start page';
53 53
   $t->post_ok('/_start?op=create', form => {password => "\t"});
54 54
   $t->content_like(qr/Password contains invalid character/);
55 55
 
56
-  # Password contains invalid character
57
-  $t->post_ok('/_start?op=create', form => {password => 'a' x 21});
58
-  $t->content_like(qr/Password is too long/);
59
-
60 56
   # Two password don't match
61 57
   $t->post_ok('/_start?op=create', form => {password => 'a', password2 => 'b'});
62 58
   $t->content_like(qr/Two password/);
... ...
@@ -132,10 +128,6 @@ note 'Admin pages';
132 128
     $t->post_ok('/_admin/user/create?op=create', form => {id => 'a', password => "\t"});
133 129
     $t->content_like(qr/Password contain invalid character/);
134 130
 
135
-    # Password contain invalid character
136
-    $t->post_ok('/_admin/user/create?op=create', form => {id => 'a', password => 'a' x 21});
137
-    $t->content_like(qr/Password is too long/);
138
-
139 131
     # Password contain invalid character
140 132
     $t->post_ok('/_admin/user/create?op=create', form => {id => 'a', password => 'a', password2 => 'b'});
141 133
     $t->content_like(qr/Two password/);
... ...
@@ -164,10 +156,6 @@ note 'Admin pages';
164 156
     # Password contains invalid character
165 157
     $t->post_ok('/reset-password?user=kimoto&op=reset', form => {password => "\t"});
166 158
     $t->content_like(qr/Password contains invalid character/);
167
-
168
-    # Password is too long
169
-    $t->post_ok('/reset-password?user=kimoto&op=reset', form => {password => 'a' x 21});
170
-    $t->content_like(qr/Password is too long/);
171 159
     
172 160
     # Two password don't match
173 161
     $t->post_ok('/reset-password?user=kimoto&op=reset', form => {password => 'a', password2 => 'b'});