));
}
my $patron = Koha::Patrons->find({ userid => $userid });
my $patron = $userid ? Koha::Patrons->find({ userid => $userid }) : undef;
$patron->update_lastseen('login');
$patron->update_lastseen('login') if $patron;
# 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.
-