display error message for empty/invalid login field values

sshabbir sshabbir at bmj.com
Tue Jul 24 17:01:59 EDT 2018


Hello,

It seems there is no configuration for displaying an error message, to
login.vm, when the user submits form with empty fields. How do I get error
messages to display for empty fields.

Here is some stuff I discovered along the name, not sure of relevance... 

AbstractUsernamePasswordValidationAction seems to return the "NoCredentials"
eventId, and it is not picked up by ClassifiedMessageMap in
authn/password-authn-config.xml.

$authenticationErrorContext does not initialize for such errors.

The only way I can get any default message to display is 

#set ($evContext =
$profileRequestContext.getSubcontext('org.opensaml.profile.context.EventContext').getEvent())

however, that appears on initial page load.

Trying to create a sub-flow, in conditions/conditions-flow.xml, as below
gives me flow error

<transition on="NoCredentials" to="CallNoCredentials" />  
.....

    <subflow-state id="CallNoCredentials"
subflow="authn/conditions/no-credentials">
        <input name="calledAsSubflow" value="true" />
        <transition on="proceed" to="DisplayUsernamePasswordPage" />
    </subflow-state>

Thanks in advance.




-----
Syed
--
Sent from: http://shibboleth.1660669.n2.nabble.com/Shibboleth-Users-f1660767.html


More information about the users mailing list