Exemple #1
0
        public async Task <IActionResult> Activate(string tokenId)
        {
            var user = await _repo.ActivateUser(tokenId);

            if (user.Activated)
            {
                return(Redirect("https://mxstrong.azurewebsites.net/login"));
            }
            return(BadRequest("Wrong activation token"));
        }
Exemple #2
0
 public virtual async Task <NetResult <LoginResult> > ActivateUser([FromBody] ActivateUserModel model)
 {
     try
     {
         return(await _user.ActivateUser(model));
     }
     catch (Exception ext)
     {
         return(ext);
     }
 }