);
}
# An expired password returns an undefined value for $THE_cardnumber so no patron can be found.
# The API returns a 500 error instead of a failed validation
return $c->render(
status => 400,
openapi => { error => "Validation failed" }
) if $status == -2;
my $patron = Koha::Patrons->find( { cardnumber => $THE_cardnumber } );
-