View | Details | Raw Unified | Return to bug 22717
Collapse All | Expand All

(-)a/opac/svc/auth/googleopenidconnect (-3 / +2 lines)
Lines 196-202 elsif ( defined $query->param('code') ) { Link Here
196
                    if (defined $patron_category && defined $library) {
196
                    if (defined $patron_category && defined $library) {
197
                        my $password = undef;
197
                        my $password = undef;
198
                        # TODO errors handling!
198
                        # TODO errors handling!
199
                        my $borrower = Koha::Patron->new(
199
                        my $borrower = Koha::Patron->new({
200
                            firstname    => $firstname,
200
                            firstname    => $firstname,
201
                            surname      => $surname,
201
                            surname      => $surname,
202
                            email        => $email,
202
                            email        => $email,
Lines 204-210 elsif ( defined $query->param('code') ) { Link Here
204
                            branchcode   => $branchcode,
204
                            branchcode   => $branchcode,
205
                            userid       => $userid,
205
                            userid       => $userid,
206
                            password     => $password
206
                            password     => $password
207
                        )->store;
207
                        })->store;
208
                    } else {
208
                    } else {
209
                        $error_feedback = 'The GoogleOpenIDConnectDefaultBranch or GoogleOpenIDConnectDefaultCategory system preferences are not configured properly. Please contact the library with this error message.';
209
                        $error_feedback = 'The GoogleOpenIDConnectDefaultBranch or GoogleOpenIDConnectDefaultCategory system preferences are not configured properly. Please contact the library with this error message.';
210
                    }
210
                    }
211
- 

Return to bug 22717