Bug 17189: Add the ability to define several memcached namespaces - replace existing...
[srvgit] / opac / svc / login
index ed41e08..0b6298d 100755 (executable)
@@ -17,7 +17,7 @@
 # with Koha; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-use CGI;
+use CGI qw ( -utf8 );
 use strict;
 use warnings;
 use C4::Auth;
@@ -43,7 +43,7 @@ if ( $response->is_success ) {
     my $content      = $response->decoded_content();
     my $decoded_json = decode_json($content);
     my ( $userid, $cookie, $sessionID ) =
-      checkauth( $query, 1,  { borrow => 1 }, 'opac', $decoded_json->{'email'} );
+      checkauth( $query, 1,  {}, 'opac', $decoded_json->{'email'} );
     if ($userid) { # a valid user has logged in
         print $query->header( -cookie => $cookie );
         print $decoded_json;