basic authentication
This commit is contained in:
parent
3826afd3bf
commit
c4af929d7a
@ -39,8 +39,9 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server)
|
|||||||
}
|
}
|
||||||
|
|
||||||
res.status = http_error_codes::unauthorized;
|
res.status = http_error_codes::unauthorized;
|
||||||
res.headers["WWW-Authenticate"] =
|
res.set_header(
|
||||||
R"(Basic realm="Repertory Management Portal", charset="UTF-8")";
|
"WWW-Authenticate",
|
||||||
|
R"(Basic realm="Repertory Management Portal", charset="UTF-8")");
|
||||||
return httplib::Server::HandlerResponse::Handled;
|
return httplib::Server::HandlerResponse::Handled;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user