示例#1
0
        public virtual ActionResult Callback()
        {
            var vm = new HomeReCaptchaViewModel()
            {
                SiteKey = this._settings.SiteKey,
                ApiUrl  = this._settings.ApiUrl,
            };

            return(this.View(vm));
        }
示例#2
0
        public virtual async Task <ActionResult> Callback(HomeReCaptchaViewModel form)
        {
            var result = await this.GetResponseAsync();

            var vm = form;

            vm.Success    = result.Success;
            vm.ErrorCodes = result.ErrorCodes;
            return(View(vm));
        }
示例#3
0
        public virtual async Task <ActionResult> Basic()
        {
            var vm = new HomeReCaptchaViewModel()
            {
                SiteKey = this._settings.SiteKey,
                ApiUrl  = this._settings.ApiUrl,
            };

            return(this.View(vm));
        }