Changeset 257 for trunk/lib/Epoll/Controller
- Timestamp:
- 12/06/09 01:10:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Epoll/Controller/Newpoll.pm
r242 r257 57 57 my ( $self, $c, undef, $id ) = @_; 58 58 59 $id eq 'confirm' and $id = $c->req->param('id') || ''; 59 60 $c->stash->{reqid} = $id; 60 61 … … 68 69 if ($c->req->param('passwd')) { 69 70 my $pid = $c->model('Vote')->poll_from_request($id, $c->req->param('passwd')); 70 $c->session->{'vpass' . $pid} = $c->req->param('passwd'); # avoid auth on admin page 71 $c->res->redirect($c->uri_for('/admin', $c->model('Vote')->poll($pid)->uid)); 71 my $uid = $c->model('Vote')->poll($pid)->uid; 72 $c->session->{'vpass' . $uid} = $c->req->param('passwd'); # avoid auth on admin page 73 $c->res->redirect($c->uri_for('/admin', $uid)); 72 74 } 73 75 }
Note: See TracChangeset
for help on using the changeset viewer.