remove need_login_always option because this option...
...can't refuse httpd git repository...
... | ... |
@@ -1,7 +1,6 @@ |
1 | 1 |
1.2 |
2 | 2 |
- add blame page |
3 | 3 |
- add blanch import feature |
4 |
- - add need_login_always option |
|
5 | 4 |
1.1 |
6 | 5 |
- add import_rep script to import repositories. |
7 | 6 |
1.0 |
... | ... |
@@ -13,10 +13,6 @@ |
13 | 13 |
;;; Tags limit (default:1000) |
14 | 14 |
;tags_limit=1000 |
15 | 15 |
|
16 |
-;;; If you set this value to 1, user need login to see git repositories. |
|
17 |
-;;; Default is 0 |
|
18 |
-;need_login_always=1 |
|
19 |
- |
|
20 | 16 |
[admin] |
21 | 17 |
;;; If you forget admin password, |
22 | 18 |
;;; set this value to 1 and access /reset-password page. |
... | ... |
@@ -156,13 +156,6 @@ sub startup { |
156 | 156 |
$self->redirect_to('/'); |
157 | 157 |
return; |
158 | 158 |
} |
159 |
- # Need login always |
|
160 |
- elsif ($self->config->{basic}{need_login_always} && !$api->logined) { |
|
161 |
- if ($path ne '_start' && $path ne 'reset-password' && $path ne '_login') { |
|
162 |
- $self->redirect_to('/_login'); |
|
163 |
- return; |
|
164 |
- } |
|
165 |
- } |
|
166 | 159 |
} |
167 | 160 |
|
168 | 161 |
return 1; |
... | ... |
@@ -40,7 +40,7 @@ note 'import_rep'; |
40 | 40 |
|
41 | 41 |
# Create admin user |
42 | 42 |
$t->post_ok('/_start?op=create', form => {password => 'a', password2 => 'a'}); |
43 |
- $t->content_like(qr/Login Page/); |
|
43 |
+ $t->content_like(qr/Login page/); |
|
44 | 44 |
|
45 | 45 |
# Login as admin |
46 | 46 |
$t->post_ok('/_login?op=login', form => {id => 'admin', password => 'a'}); |