Skip to content

Commit

Permalink
auth-policy: Report success earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and sirainen committed Jun 29, 2016
1 parent be2be31 commit 223cfcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/auth/auth-request-handler.c
Expand Up @@ -262,6 +262,9 @@ auth_request_handler_reply_success_finish(struct auth_request *request)
str_printfa(str, "OK\t%u\tuser=", request->id);
str_append_tabescaped(str, request->user);
auth_str_append_extra_fields(request, str);

auth_policy_report(request);

if (handler->master_callback == NULL ||
auth_fields_exists(request->extra_fields, "nologin") ||
auth_fields_exists(request->extra_fields, "proxy")) {
Expand All @@ -270,8 +273,6 @@ auth_request_handler_reply_success_finish(struct auth_request *request)
auth_request_handler_remove(handler, request);
}

auth_policy_report(request);

handler->callback(str_c(str), handler->conn);
}

Expand Down

0 comments on commit 223cfcf

Please sign in to comment.