summaryrefslogtreecommitdiff
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>2016-06-08 14:32:31 (GMT)
committer Kyle M Hall <kyle@bywatersolutions.com>2016-06-10 17:31:19 (GMT)
commit4f3067184d7dd3666d404a2165d72755cb0b227d (patch) (side-by-side diff)
treee9d8b972c6895c2ff304d12d7697b4e1cb7e0a57
parentbb6e70fe7d4ba530fe64179fe6fde4d6b4ec5e35 (diff)
Bug 16492: Add a FIXME to explain the possible problem with no_set_userenv
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--C4/Auth.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/C4/Auth.pm b/C4/Auth.pm
index a5cf72c..985bd39 100644
--- a/C4/Auth.pm
+++ b/C4/Auth.pm
@@ -1737,6 +1737,11 @@ sub get_session {
return $session;
}
+
+# FIXME no_set_userenv may be replaced with force_branchcode_for_userenv
+# (or something similar)
+# Currently it's only passed from C4::SIP::ILS::Patron::check_password, but
+# not having a userenv defined could cause a crash.
sub checkpw {
my ( $dbh, $userid, $password, $query, $type, $no_set_userenv ) = @_;
$type = 'opac' unless $type;