mirror of
https://github.com/apache/httpd.git
synced 2025-11-08 04:22:21 +03:00
minor mod_auth_basic and mod_auth_digest sync. mod_auth_basic
now populates r->user with the (possibly unauthenticated) user, and mod_auth_digest returns 500 when a provider returns AUTH_GENERAL_ERROR Reviewed by: justin git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102719 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -176,6 +176,9 @@ static int get_basic_auth(request_rec *r, const char **user,
|
||||
*user = ap_getword_nulls(r->pool, (const char**)&decoded_line, ':');
|
||||
*pw = decoded_line;
|
||||
|
||||
/* set the user, even though the user is unauthenticated at this point */
|
||||
r->user = (char *) *user;
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user