Bug 21771

Summary: Password recovery is broken (see 20023)
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: OPACAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: cslone, fridolin.somers, m.de.rooy, martin.renvoize, nick
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 20023    
Bug Blocks:    
Attachments: Bug 21771: (Follow-up) Revert the shift statement
Bug 21771: (Follow-up) Revert the shift statement

Description Katrin Fischer 2018-11-06 13:39:08 UTC
At least for 17.11 the password recovery won't find a matching account until the last follow-up from bug 20023 is reverted.
Comment 1 Marcel de Rooy 2018-11-06 14:09:11 UTC
Created attachment 81986 [details] [review]
Bug 21771: (Follow-up) Revert the shift statement

Obviously you should never shift an items from an array if you need that
item later on :)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested with entering userid as well as entering email..
Comment 2 Marcel de Rooy 2018-11-06 14:09:47 UTC
Moving to PQA directly
Comment 3 Marcel de Rooy 2018-11-06 14:10:38 UTC
Attention RM and Rmaints : This patch is a fix of the last follow-up on 20023.
Comment 4 Katrin Fischer 2018-11-06 14:12:24 UTC
I'll run a test with 17.11.11 as I was just working on this immediately.
Comment 5 Katrin Fischer 2018-11-06 14:17:11 UTC
Created attachment 81987 [details] [review]
Bug 21771: (Follow-up) Revert the shift statement

Obviously you should never shift an items from an array if you need that
item later on :)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested with entering userid as well as entering email..

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Comment 6 Marcel de Rooy 2018-11-06 14:28:59 UTC
(In reply to Katrin Fischer from comment #5)
> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Thanks.
Comment 7 Nick Clemens 2018-11-06 17:57:26 UTC
Awesome work all!

Pushed to master for 18.11
Comment 8 Martin Renvoize 2018-11-16 12:38:19 UTC
Pushed to 18.05.x for 18.05.06
Comment 9 Fridolin Somers 2018-11-16 12:47:41 UTC
Pushed to 17.11.x for 17.11.12