コード例 #1
0
        public ActionResult <dynamic> CheckRecoveryCode(Users user)
        {
            string message       = null;
            string recoveryToken = usersManager.CheckRecoveryCode(user.user_email,
                                                                  user.recovery_code, ref message);

            if (recoveryToken != null)
            {
                return(new
                {
                    success = true,
                    data = new
                    {
                        recovery_token = recoveryToken
                    }
                });
            }
            return(Return500Error(message));
        }