Changeset 187 for trunk/lib/Vote/Controller
- Timestamp:
- 04/13/09 00:13:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Admin.pm
r186 r187 65 65 ) and $vote->db->commit; 66 66 } elsif ($c->req->param('encrypted')) { 67 $poll->gen_poll_keys() 67 my $passphrase = $c->req->param('passphrase') || 68 $c->session->{'vpass' . $c->stash->{voteid}}; 69 $poll->gen_poll_keys($passphrase) 68 70 and $vote->db->commit; 69 71 } elsif ($c->req->param('notcrypted')) { … … 128 130 } 129 131 if ($c->req->param('decryptballot')) { 130 $c->model('Vote')->poll($c->stash->{voteid})->decrypted_ballots( 131 $c->session->{'vpass' . $c->stash->{voteid}} 132 ); 132 my $passphrase = $c->req->param('passphrase') || 133 $c->session->{'vpass' . $c->stash->{voteid}}; 134 if ($c->model('Vote')-> 135 poll($c->stash->{voteid})-> 136 private_key($passphrase)) { 137 $c->model('Vote')->poll($c->stash->{voteid})->decrypted_ballots( 138 $passphrase 139 ); 140 } else { 141 } 133 142 } 134 143 };
Note: See TracChangeset
for help on using the changeset viewer.