- Timestamp:
- 05/24/10 05:11:50 (14 years ago)
- Location:
- trunk/lib/Epoll/DB
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Epoll/DB/Poll.pm
r315 r317 846 846 my $ext_auth = $options{ext_auth} && $handle->can_authenticate; 847 847 my $authid; 848 if ($ext_auth ) { # register authentication848 if ($ext_auth || $options{save_param}) { 849 849 my $find_next_id = $self->db->prepare_cached( 850 850 q{select nextval('extern_auth_id_seq'::regclass)} … … 855 855 856 856 my $add_auth = $self->db->prepare_cached( 857 q{insert into extern_auth (id, params, owner, auth_type, desc) values857 q{insert into extern_auth (id, params, owner, auth_type, "desc") values 858 858 (?,?,?,?,?)} 859 859 ); … … 867 867 }; 868 868 foreach (@list) { 869 $self->addupd_voting($_->[0], $_->[1] || '', $authid, $_->[2]) or do { 869 $self->addupd_voting( 870 $_->[0], $_->[1] || '', $authid, ($ext_auth ? $_->[2]: undef) 871 ) or do { 870 872 $self->db->rollback; 871 873 return; -
trunk/lib/Epoll/DB/Voting.pm
r315 r317 58 58 59 59 warn "ee"; 60 if ($userinfo->{extern_ auth}) {60 if ($userinfo->{extern_uid}) { 61 61 warn "rr"; 62 62 my $handle = $self->stored_import_handle($userinfo->{extern_auth})
Note: See TracChangeset
for help on using the changeset viewer.