View | Details | Raw Unified | Return to bug 35204
Collapse All | Expand All

(-)a/Koha/REST/V1/Auth/Password.pm (-1 / +7 lines)
Lines 79-84 sub validate { Link Here
79
            );
79
            );
80
        }
80
        }
81
81
82
        # An expired password returns an undefined value for $THE_cardnumber so no patron can be found.
83
        # The API returns a 500 error instead of a failed validation
84
        return $c->render(
85
            status  => 400,
86
            openapi => { error => "Validation failed" }
87
        ) if $status == -2;
88
82
        my $patron = Koha::Patrons->find( { cardnumber => $THE_cardnumber } );
89
        my $patron = Koha::Patrons->find( { cardnumber => $THE_cardnumber } );
83
90
84
        return $c->render(
91
        return $c->render(
85
- 

Return to bug 35204