Bug 36028

Summary: When AutoLocation is on there is no error message when the user is at the wrong branch
Product: Koha Reporter: Michael Hafen <michael.hafen>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28657
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 28657    
Attachments: Bug 36028: With AutoLocation on, show the error when a user is at another branch

Description Michael Hafen 2024-02-07 22:42:18 UTC
When AutoLocation is on the user is supposed to be restricted to logging in at their branch.  If the user is at a different branch and logs in, they get past the login page, but any action returns them to the login page.
They should be returned directly to the login page with an error message.

Test plan:
1. select a branch with branchip set to match the ip you are testing from.
2. select a user at a different branch.
3. login.
4. observe that there is no error, and login appears to succeed, but doesn't actually.
5. apply patch and restart services.
6. login again.
7. observe that the login page comes back immediately with an error message about AutoLocation being on.
Comment 1 Michael Hafen 2024-02-07 22:44:50 UTC
Created attachment 161860 [details] [review]
Bug 36028: With AutoLocation on, show the error when a user  is at another branch