Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const char *sent_pw = NULL;
- char *user = r->connection->user;
- int ret = ap_get_basic_auth_pw(r, &sent_pw);
- if (ret != OK)
- {
- return ret;
- }
- if(!(user && sent_pwd && db_verify(user, sent_pw)){
- ap_note_basic_auth_failure(r);
- ap_log_reason("User did not authenticate", r->uri, r);
- return HTTP_UNAUTHORIZED;
- }
Add Comment
Please, Sign In to add comment