commit | 3d673065dcd3ef3fadb2ffd1c56a9b29ba2e6c6f | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Tue Jan 29 15:54:16 2019 +0100 |
committer | Akron <nils@diewald-online.de> | Tue Jan 29 15:54:16 2019 +0100 |
tree | 80fe5c054a3838fcc243039247f7467fe975b98d | |
parent | a0282bee23aee908caa1b3d006ec62b161199016 [diff] [blame] |
Fix handling of login errors Change-Id: Ib8d6b7d3f8a8c572c07c45da3fd0f60fb2e58eb3
diff --git a/t/server/mock.pl b/t/server/mock.pl index 18fd05d..79eeb90 100644 --- a/t/server/mock.pl +++ b/t/server/mock.pl
@@ -229,6 +229,16 @@ token_type => 'api_token' }) ); + } + + elsif ($pwd eq 'ldaperr') { + return $c->render( + format => 'html', + status => 401, + json => { + "errors" => [[2022,"LDAP Authentication failed due to unknown user or password!"]] + } + ); }; return $c->render(