Esempio n. 1
2
/** 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();
}
Esempio n. 2
1
/** 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();
}
Esempio n. 3
0
/** 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();
}
Esempio n. 4
0
bool cConfMySQL::UpdatePK()
{
	return UpdatePK(mQuery);
}