コード例 #1
0
        public ViewResult Confirm(string token)
        {
            bool confirmed = false;

            try {
                confirmed = _securityProvider.ConfirmAccount(token);
            }
            catch (Exception e) {
                log.Error(string.Format("Account confirmation failed - {0}", e.Message), e);
                confirmed = false;
            }

            return(View(confirmed));
        }