Changeset 13 for trunk/lib/Vote/Controller
- Timestamp:
- 03/06/09 17:13:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Ballot.pm
r9 r13 36 36 my $password = $c->session->{password} || $c->req->param('password'); 37 37 38 if (!($uid && $password)) { 38 if (!$c->model('Vote')->auth_voting($id, $uid, $password)) { 39 $c->delete_session('invalid user/pass'); 39 40 $c->stash->{template} = 'ballot/login.tt'; 40 41 return; … … 51 52 $c->stash->{sbal} = { map { $_ => 1 } $c->req->param('sbal') }; 52 53 53 my $uid = 'Olivier Thauvin'; # for test now54 54 if ($c->req->param('confirm')) { 55 55 $vote->register_ballot(
Note: See TracChangeset
for help on using the changeset viewer.