Mercurial > hg > nginx
comparison src/http/modules/ngx_http_auth_basic_module.c @ 6480:f01ab2dbcfdc
Fixed logging.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 02:33:57 +0300 |
parents | c37f34bda5ea |
children | 0cdee26605f3 |
comparison
equal
deleted
inserted
replaced
6479:dc92298b1852 | 6480:f01ab2dbcfdc |
---|---|
296 | 296 |
297 rc = ngx_crypt(r->pool, r->headers_in.passwd.data, passwd->data, | 297 rc = ngx_crypt(r->pool, r->headers_in.passwd.data, passwd->data, |
298 &encrypted); | 298 &encrypted); |
299 | 299 |
300 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 300 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
301 "rc: %d user: \"%V\" salt: \"%s\"", | 301 "rc: %i user: \"%V\" salt: \"%s\"", |
302 rc, &r->headers_in.user, passwd->data); | 302 rc, &r->headers_in.user, passwd->data); |
303 | 303 |
304 if (rc == NGX_OK) { | 304 if (rc == NGX_OK) { |
305 if (ngx_strcmp(encrypted, passwd->data) == 0) { | 305 if (ngx_strcmp(encrypted, passwd->data) == 0) { |
306 return NGX_OK; | 306 return NGX_OK; |