- Timestamp:
- 03/17/09 03:36:29 (15 years ago)
- Location:
- trunk/lib/Vote
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Admin.pm
r53 r58 38 38 my $vote = $c->model('Vote'); 39 39 40 $vote->vote_info($id) or do { 41 $c->res->redirect($c->uri_for('/')); 42 return; 43 }; 44 40 45 my $password = $c->session->{vpassword} || $c->req->param('vpassword'); 41 46 42 47 if (!$c->model('Vote')->auth_poll($id, $password)) { 43 $c->stash->{page}{title} = $ c->model('Vote')->vote_info($id)->{label} . ': Login d\'administration';48 $c->stash->{page}{title} = $vote->vote_info($id)->{label} . ': Login d\'administration'; 44 49 $c->session->{vpassword} = undef; 45 50 $c->stash->{template} = 'admin/login.tt'; -
trunk/lib/Vote/Model/Vote.pm
r43 r58 181 181 } 182 182 } 183 $res->{free_choice} = 0; # avoiding undef 183 184 $res 184 185 }
Note: See TracChangeset
for help on using the changeset viewer.