Bugzilla – Attachment 61800 Details for
Bug 16892
Add automatic patron registration via OAuth2 login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16892: Follow up use AddMember as per QA comment
Bug-16892-Follow-up-use-AddMember-as-per-QA-commen.patch (text/plain), 1.78 KB, created by
Mark Tompsett
on 2017-04-03 17:07:19 UTC
(
hide
)
Description:
Bug 16892: Follow up use AddMember as per QA comment
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-04-03 17:07:19 UTC
Size:
1.78 KB
patch
obsolete
>From 321da7bb67f0f4adf0f66f174ec18e92c50447dd Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 3 Apr 2017 13:05:41 -0400 >Subject: [PATCH] Bug 16892: Follow up use AddMember as per QA comment > >Same Test plan as before. >--- > opac/svc/auth/googleopenidconnect | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > >diff --git a/opac/svc/auth/googleopenidconnect b/opac/svc/auth/googleopenidconnect >index eae7b34..c08b3c1 100755 >--- a/opac/svc/auth/googleopenidconnect >+++ b/opac/svc/auth/googleopenidconnect >@@ -192,7 +192,7 @@ elsif ( defined $query->param('code') ) { > my $categorycode = C4::Context->preference('GoogleOpenIDConnectDefaultCategory') // q{}; > my $branchcode = C4::Context->preference('GoogleOpenIDConnectDefaultBranch') // q{}; > my $password = undef; >- $borrower = Koha::Patron->new( { >+ my $borrowernumber = C4::Members::AddMember( > cardnumber => $cardnumber, > firstname => $firstname, > surname => $surname, >@@ -200,9 +200,10 @@ elsif ( defined $query->param('code') ) { > categorycode => $categorycode, > branchcode => $branchcode, > userid => $userid, >- password => $password, >- } ); >- $borrower->store(); >+ password => $password >+ ); >+ $borrower = Koha::Patrons->find( { >+ borrowernumber => $borrowernumber } ); > } > my ( $userid, $cookie, $session_id ) = > checkauth( $query, 1, {}, 'opac', $email ); >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16892
:
53257
|
53485
|
53488
|
56081
|
57111
|
57112
|
57113
|
58373
|
58374
|
58375
|
61800
|
61801
|
61802
|
61803
|
61804
|
61886
|
61887
|
61888
|
61889
|
63117
|
63118
|
63119
|
63120
|
65316