Commit 1293643a authored by Xavier Guimard's avatar Xavier Guimard

Materialize failure #1639

parent 759c93b5
Pipeline #4309 passed with stages
in 10 minutes and 15 seconds
......@@ -98,6 +98,9 @@ SKIP: {
my $id = expectCookie($res);
expectRedirection( $res, 'http://auth.example.com/' );
$client->logout($id);
ok($res = $client->_post('/', IO::String->new('user=dwho&password=newpassword'),length=>30), 'Auth query');
count(1);
expectCookie($res);
}
clean_sessions();
count($maintests);
......
......@@ -32,7 +32,7 @@ sub authenticate {
$self->setSecurity($req);
return PE_PP_PASSWORD_EXPIRED;
}
if ( $req->data->{newpassword} eq 'newp' ) {
if ( $req->data->{newpassword} and $req->data->{newpassword} eq 'newp' ) {
$req->data->{noerror} = 1;
$self->setSecurity($req);
return PE_PP_PASSWORD_TOO_SHORT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment