default login session time become 2 weeks and delete...
...save check box
... | ... |
@@ -1,4 +1,7 @@ |
1 |
-2.00_dev () |
|
1 |
+2.1 () |
|
2 |
+ - default login session time become 2 weeks and delete save check box. |
|
3 |
+ |
|
4 |
+2.0 (7 May 2016) |
|
2 | 5 |
- drop Perl 5.8 support, now require Perl 5.10.1 |
3 | 6 |
- use own temparaly directory when creating repositoy with readme file. Now not use /tmp. |
4 | 7 |
- add Mojolicious::Plugin::DBViewer to cpanfile |
... | ... |
@@ -17,7 +17,7 @@ use Time::Moment; |
17 | 17 |
eval {require Digest::SHA; import Digest::SHA qw(sha1 sha1_hex)}; |
18 | 18 |
} |
19 | 19 |
|
20 |
-our $VERSION = 'v2.0'; |
|
20 |
+our $VERSION = 'v2.1_dev'; |
|
21 | 21 |
|
22 | 22 |
has 'dbi'; |
23 | 23 |
has 'git'; |
... | ... |
@@ -17,7 +17,6 @@ |
17 | 17 |
# Paramerters |
18 | 18 |
my $id = param('id'); |
19 | 19 |
my $password = param('password'); |
20 |
- my $save = param('save'); |
|
21 | 20 |
|
22 | 21 |
# Validator |
23 | 22 |
my $vc = app->vc; |
... | ... |
@@ -48,9 +47,6 @@ |
48 | 47 |
} |
49 | 48 |
} |
50 | 49 |
|
51 |
- # "save" |
|
52 |
- $save = $save ? 1 : 0; |
|
53 |
- |
|
54 | 50 |
if ($validation->is_valid) { |
55 | 51 |
|
56 | 52 |
# Login success |
... | ... |
@@ -59,10 +55,8 @@ |
59 | 55 |
session(user_row_id => $user->{row_id}); |
60 | 56 |
session(password => $password_encrypted); |
61 | 57 |
|
62 |
- if ($save) { |
|
63 |
- # 2 weeks save |
|
64 |
- session(expires => time + 60 * 60 * 24 * 14); |
|
65 |
- } |
|
58 |
+ # 2 weeks save |
|
59 |
+ session(expires => time + 60 * 60 * 24 * 14); |
|
66 | 60 |
|
67 | 61 |
# Go to admin page |
68 | 62 |
if ($admin) { |
... | ... |
@@ -135,11 +129,6 @@ |
135 | 129 |
<%= password_field 'password', id => 'input-password', placeholder => 'Password' %> |
136 | 130 |
</div> |
137 | 131 |
</div> |
138 |
- <div> |
|
139 |
- <div> |
|
140 |
- <input type="checkbox" name="save" value="1"> Save |
|
141 |
- </div> |
|
142 |
- </div> |
|
143 | 132 |
<div> |
144 | 133 |
<div> |
145 | 134 |
<button type="submit" class="btn btn-success">Sign in</button> |