public void IsLogoutOk() { UserID = LiveUserID; Online = false; UpdateStatus(this); LivelogBLL.InsertLog(DateTime.Now, "-", "-", LiveUserID, "logged out", SysUserID, Computer); }
public bool IsLoginOk() { bool flag = false; flag = ((Authenticate(this) == 0) ? true : false); if (flag) { Online = true; LoadUserProfile(); if (LiveIsActive) { UpdateStatus(this); LoadUserProfile(); LivelogBLL.InsertLog(DateTime.Now, "-", "-", LiveUserID, "logged in", SysUserID, Computer); } else { LivelogBLL.InsertLog(DateTime.Now, "-", "-", LiveUserID, "logged in failed", SysUserID, Computer); Interactive.LInfoError("please contact you system admin", "Account has been disabled"); } } return(flag); }