Ignore:
Timestamp:
12/06/09 01:10:54 (15 years ago)
Author:
nanardon
Message:
  • after poll request, a form allow to enter the request id,
  • really remember password to avoid login just after poll password setup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Epoll/Controller/Newpoll.pm

    r242 r257  
    5757    my ( $self, $c, undef, $id ) = @_; 
    5858 
     59    $id eq 'confirm' and $id = $c->req->param('id') || ''; 
    5960    $c->stash->{reqid} = $id; 
    6061 
     
    6869    if ($c->req->param('passwd')) { 
    6970        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)); 
    7274    } 
    7375} 
Note: See TracChangeset for help on using the changeset viewer.