protected void CreateUserError(object sender, EventArgs e)
 {
     if (SettingManager.GetSettingValueBoolean("Common.RegisterCaptchaImageEnabled"))
     {
         CaptchaControl CaptchaCtrl = CreateUserWizardStep1.ContentTemplateContainer.FindControl("CaptchaCtrl") as CaptchaControl;
         if (CaptchaCtrl != null)
         {
             CaptchaCtrl.RegenerateCode();
         }
     }
 }
Esempio n. 2
0
 protected void OnLoginError(object sender, EventArgs e)
 {
     if (SettingManager.GetSettingValueBoolean("Common.LoginCaptchaImageEnabled"))
     {
         CaptchaControl CaptchaCtrl = LoginForm.FindControl("CaptchaCtrl") as CaptchaControl;
         if (CaptchaCtrl != null)
         {
             CaptchaCtrl.RegenerateCode();
         }
     }
 }