public void Register(UserInfo userInfo) { DateTime now = DateTime.Now; userInfo.IsActive = false; userInfo.LastActiveTime = now; userInfo.ActiveCode = Guid.NewGuid().ToString() + "_" + Guid.NewGuid().ToString(); userInfo.ActiveCodeExpireTime = now.AddDays(15); userInfoDAO.AddUser(userInfo); // TODO: Send email }
// 注册 public static bool SignUp(UserInfo user) { return(iuser.AddUser(user)); }
public bool AddUser(DataTable dt) { return(iUserInfo.AddUser(dt)); }