Upon successful login, the user will be sent along to her original destination (i.e. the page she requested before be intercepted by the login page), or otherwise the home page.
If login was unsuccessful, an error feedback message will be attached to the email field: "Invalid email address and/or password." You should therefore ensure that there is a {@link org.apache.wicket.markup.html.panel.FeedbackPanel FeedbackPanel}present on your login page. (If you want a different or localized message, define the key {@code loginFailed} in your page or application properties.)
This class is intended to get you started quickly with Shiro. If you need anything more complicated, such as more nuanced error handling or localized error messages, consider writing your own form using {@link AbstractLoginForm}as a starting point. @author Matt Brictson @since 3.0
|
|