/** No descriptions */ bool cRegList::ChangePwd(const string &nick, const string &pwd, int crypt) { if(!FindRegInfo(mModel, nick)) return false; mModel.SetPass(pwd,mS->mC.default_password_encryption); return UpdatePK(); }
/** log that user logged in with error*/ bool cRegList::LoginError(cConnDC *conn, const string &nick) { if(!FindRegInfo(mModel, nick)) return false; mModel.mErrorLast = cTime().Sec(); mModel.mErrorIP = conn->AddrIP(); mModel.mErrorCount++; return UpdatePK(); }
/** log that user logged in */ bool cRegList::Login(cConnDC *conn, const string &nick) { cRegUserInfo ui; if(!FindRegInfo(ui, nick)) return false; ui.mLoginLast = cTime().Sec(); ui.mLoginIP = conn->AddrIP(); ui.mLoginCount++; return UpdatePK(); }
bool cConfMySQL::UpdatePK() { return UpdatePK(mQuery); }