Lines 192-198
elsif ( defined $query->param('code') ) {
Link Here
|
192 |
my $categorycode = C4::Context->preference('GoogleOpenIDConnectDefaultCategory') // q{}; |
192 |
my $categorycode = C4::Context->preference('GoogleOpenIDConnectDefaultCategory') // q{}; |
193 |
my $branchcode = C4::Context->preference('GoogleOpenIDConnectDefaultBranch') // q{}; |
193 |
my $branchcode = C4::Context->preference('GoogleOpenIDConnectDefaultBranch') // q{}; |
194 |
my $password = undef; |
194 |
my $password = undef; |
195 |
$borrower = Koha::Patron->new( { |
195 |
my $borrowernumber = C4::Members::AddMember( |
196 |
cardnumber => $cardnumber, |
196 |
cardnumber => $cardnumber, |
197 |
firstname => $firstname, |
197 |
firstname => $firstname, |
198 |
surname => $surname, |
198 |
surname => $surname, |
Lines 200-208
elsif ( defined $query->param('code') ) {
Link Here
|
200 |
categorycode => $categorycode, |
200 |
categorycode => $categorycode, |
201 |
branchcode => $branchcode, |
201 |
branchcode => $branchcode, |
202 |
userid => $userid, |
202 |
userid => $userid, |
203 |
password => $password, |
203 |
password => $password |
204 |
} ); |
204 |
); |
205 |
$borrower->store(); |
205 |
$borrower = Koha::Patrons->find( { |
|
|
206 |
borrowernumber => $borrowernumber } ); |
206 |
} |
207 |
} |
207 |
my ( $userid, $cookie, $session_id ) = |
208 |
my ( $userid, $cookie, $session_id ) = |
208 |
checkauth( $query, 1, {}, 'opac', $email ); |
209 |
checkauth( $query, 1, {}, 'opac', $email ); |
209 |
- |
|
|