/// <summary> /// /// </summary> /// <param name="userID"></param> public User(string userID) { _userid = userID; // this.ClientID = clientID; dUser = new Tz.Data.Security.User(); // UserRole = new UserSecurityGroup(); Load(); }
/// <summary> /// /// </summary> /// <param name="userName"></param> /// <param name="password"></param> public User(string clientid, string userName, string password) { this.ClientID = clientid; this.UserName = userName; this.Password = password; _userid = ""; this.LastName = ""; this.FirstName = ""; this.Email = ""; dUser = new Tz.Data.Security.User(); Authenticate(); }
/// <summary> /// / /// </summary> /// <param name="userName"></param> /// <param name="password"></param> /// <param name="userGroupID"></param> /// <param name="status"></param> public User(string clientid, string userName, string password, string userGroupID, bool status, string firstName, string lastName, string email) { dUser = new Tz.Data.Security.User(); _userid = ""; this.UserName = userName; this.Password = password; this.UserGroupID = userGroupID; this.IsActive = status; this.FirstName = firstName; this.LastName = lastName; this.Email = email; _isauth = true; this.ClientID = clientid; }