my $password = $body->{password} // "";
return try {
my ( $status, $THE_cardnumber, $THE_userid ) = C4::Auth::checkpw( $identifier, $password );
my ( $status, $THE_cardnumber, $THE_userid, $patron ) = C4::Auth::checkpw( $identifier, $password );
unless ($status) {
return $c->render(
status => 400,
);
}
my $patron = Koha::Patrons->find( { cardnumber => $THE_cardnumber } );
status => 201,
openapi => {
-