mirror of
https://github.com/simon987/ngx_http_js_challenge_module.git
synced 2025-04-04 06:52:58 +00:00
typo
This commit is contained in:
parent
4cc6ef23ae
commit
d8828821b6
@ -350,14 +350,14 @@ static ngx_int_t ngx_http_js_challenge_handler(ngx_http_request_t *r) {
|
||||
int ret = get_cookie(r, &cookie_name, &response);
|
||||
|
||||
if (ret < 0) {
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "[ js challenge log ] sending challenger... ");
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "[ js challenge log ] sending challenge... ");
|
||||
return serve_challenge(r, challenge, conf->html, conf->title);
|
||||
}
|
||||
|
||||
get_challenge_string(bucket, addr, conf->secret, challenge);
|
||||
|
||||
if (verify_response(response, challenge) != 0) {
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "[ js challenge log ] wrong/expired cookie (res=%s), sending challenger...", response.data);
|
||||
ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "[ js challenge log ] wrong/expired cookie (res=%s), sending challenge...", response.data);
|
||||
return serve_challenge(r, challenge, conf->html, conf->title);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user