Changeset 325
- Timestamp:
- 10/04/10 21:19:15 (14 years ago)
- Location:
- trunk/lib/Epoll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Epoll/Controller/Admin.pm
r319 r325 121 121 my $passphrase = $c->req->param('passphrase') || 122 122 $c->session->{'vpass' . $c->stash->{voteid}}; 123 if ($c->model('Vote')->124 poll($c->stash->{voteid})->125 private_key($passphrase)) {126 123 $c->model('Vote')->poll($c->stash->{voteid})->decrypted_ballots( 127 124 $passphrase 128 125 ); 129 } else {130 }131 126 } 132 127 if ($c->req->param('publish')) { -
trunk/lib/Epoll/DB/Poll/Bdata.pm
r319 r325 128 128 my $ballot = $sth->fetchrow_hashref; 129 129 $sth->finish; 130 $self->_load_crypted_data($ballot->{data}, $ballot->{enckey}, $privkey); 130 if ($ballot->{enckey}) { 131 $self->_load_crypted_data($ballot->{data}, $ballot->{enckey}, $privkey); 132 } else { 133 return $ballot->{data} 134 } 131 135 } 132 136
Note: See TracChangeset
for help on using the changeset viewer.