Commit 10fff066 authored by deuce's avatar deuce
Browse files

Update connection info for HTTP logins

(Should this be configurable?)
parent 17ad005b
......@@ -1003,8 +1003,13 @@ void http_logon(http_session_t * session, user_t *usr)
return;
if(session->user.number==0)
SAFECOPY(session->username,unknown);
else
else {
SAFECOPY(session->username,session->user.alias);
/* Adjust Connect and host */
putuserrec(&scfg,session->user.number,U_MODEM,LEN_MODEM,"HTTP");
putuserrec(&scfg,session->user.number,U_COMP,LEN_COMP,session->host_name);
putuserrec(&scfg,session->user.number,U_NOTE,LEN_NOTE,session->host_ip);
}
session->last_user_num=session->user.number;
session->logon_time=time(NULL);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment