defect 4151:restapi: add error message if using incorrect authorize keys/passwd
This commit is contained in:
parent
b78515b8bc
commit
1925650c96
@ -2339,7 +2339,7 @@ sub filterData {
|
||||
foreach my $msg (@{$_->{error}}) {
|
||||
if ($msg =~ /(Permission denied|Authentication failure)/) {
|
||||
# return 401 Unauthorized
|
||||
sendResponseMsg($STATUS_UNAUTH);
|
||||
error("Authentication failure", $STATUS_UNAUTH);
|
||||
} else {
|
||||
push @{$outputerror->{error}}, $msg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user