예제 #1
0
        // **************************************
        // URL: /Account/Activate/username/key
        // **************************************

        public ActionResult Activate(string username, string key)
        {
            AccountRepository _db = new AccountRepository();

            if (_db.ActivateUser(username, key) == false)
            {
                return(RedirectToAction("Edit", "UserProfile", new { id = _db.GetAccountIDByUserName(username) }));
            }
            else
            {
                return(RedirectToAction("LogOn"));
            }
        }