Exemple #1
0
        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
        }
Exemple #2
0
 // 注册
 public static bool SignUp(UserInfo user)
 {
     return(iuser.AddUser(user));
 }
Exemple #3
0
 public bool AddUser(DataTable dt)
 {
     return(iUserInfo.AddUser(dt));
 }