Browse Source

Update user auth time on each successful auth

master
ckolivas 10 years ago
parent
commit
2561eff1cb
  1. 1
      src/stratifier.c

1
src/stratifier.c

@ -2428,7 +2428,6 @@ static int send_recv_auth(stratum_instance_t *client)
json_get_string(&secondaryuserid, val, "secondaryuserid"); json_get_string(&secondaryuserid, val, "secondaryuserid");
parse_worker_diffs(ckp, worker_array); parse_worker_diffs(ckp, worker_array);
client->suggest_diff = worker->mindiff; client->suggest_diff = worker->mindiff;
if (!user->auth_time)
user->auth_time = time(NULL); user->auth_time = time(NULL);
} }
if (secondaryuserid && (!safecmp(response, "ok.authorise") || if (secondaryuserid && (!safecmp(response, "ok.authorise") ||

Loading…
Cancel
Save