예제 #1
0
 public IActionResult ResendConfirmCode([FromBody] UserContactContract data)
 {
     try
     {
         var userId = m_authenticationManager.GetCurrentUserId();
         m_userManager.ResendConfirmCode(userId, data);
         return(Ok());
     }
     catch (HttpErrorCodeException exception)
     {
         return(StatusCode(exception.StatusCode, exception.Message));
     }
 }
예제 #2
0
        public void ResendConfirmCode(UserContactContract data)
        {
            try
            {
                m_client.Post <object>($"user/current/contact/confirmation/resend", data);
            }
            catch (HttpRequestException e)
            {
                if (m_logger.IsErrorEnabled())
                {
                    m_logger.LogError("{0} failed with {1}", m_client.GetCurrentMethod(), e);
                }

                throw;
            }
        }
예제 #3
0
        public IActionResult ResendConfirmCode([FromBody] ResendConfirmCodeRequest resendConfirmCodeRequest)
        {
            try
            {
                var contract = new UserContactContract
                {
                    ContactType = resendConfirmCodeRequest.ContactType
                };

                var client = GetUserClient();
                client.ResendConfirmCode(contract);
                return(AjaxOkResponse());
            }
            catch (HttpErrorCodeException e)
            {
                return(AjaxErrorResponse(m_localizationService.Translate("ResendCodeError", "Account"), e.StatusCode));
            }
        }