I have a simple solution that involve a few changes in login-webflow.xml
In my case the need is to show a captcha image that the user has to recogize 
and input what he see, 
 
<action-state id="bindAndValidate">

       <action bean="authenticationViaFormAction" />

      <transition on="success" to="captchaCheck" />   here is first

      <transition on="error" to="errorCount" />               and second

</action-state>

 

<decision-state id="captchaCheck">       

<if test="${flowScope.count != null &amp;&amp; flowScope.count >= 3}" 
then="captchaValidate" else="submit"/>

</decision-state>

 

<action-state id="captchaValidate">

     <action bean="captchaValidateAction" /> this bean check if the user input 
for catcha is correct and if yes reset flowScope.count

    <transition on="success" to="submit" />

   <transition on="error" to="errorCount" />

</action-state>

 

<action-state id="errorCount">

    <action bean="captchaErrorCountAction" /> this bean only increment 
flowScope.count

    <transition on="success" to="viewLoginForm" />

</action-state>

 

<action-state id="submit">

    <action bean="authenticationViaFormAction" method="submit" />

    <transition on="warn" to="warn" />

    <transition on="success" to="sendTicketGrantingTicket" />

    <transition on="error" to="errorCount" />

</action-state>

only take the idea to do what you want, is similar but with your changes

<<winmail.dat>>

_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to