Bug 26191: Relocate track_login call in Auth.pm
This is a leftover from bug 22543. Trivial move. Test plan: Do not apply this patch. Pick a user that has not yet logged in today. Only login via the opac and immediately check if borrowers.datelastseen did not change. Apply this patch, restart, flush etc. Only login via the opac and verify again rightaway (no further opac actions). Now datelastseen should have been changed already. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commitb827acf53f) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitf095fc1aef) Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
This commit is contained in:
parent
5add311155
commit
3d1d81014d
|
|
@ -1226,6 +1226,8 @@ sub checkauth {
|
|||
);
|
||||
}
|
||||
|
||||
track_login_daily( $userid );
|
||||
|
||||
# In case, that this request was a login attempt, we want to prevent that users can repost the opac login
|
||||
# request. We therefore redirect the user to the requested page again without the login parameters.
|
||||
# See Post/Redirect/Get (PRG) design pattern: https://en.wikipedia.org/wiki/Post/Redirect/Get
|
||||
|
|
@ -1238,8 +1240,6 @@ sub checkauth {
|
|||
exit;
|
||||
}
|
||||
|
||||
track_login_daily( $userid );
|
||||
|
||||
return ( $userid, $cookie, $sessionID, $flags );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue