Everything seems fine, but the page won't redirect to the designated URL.
My Route
GET /reset/ask controllers.ResetController.ask()
My Controller
public Result ask() {
Form<AskForm> askForm = form(AskForm.class);
return ok(views.html.reset.ask.render(askForm));
}
My View
View -> Reset -> ask.scala.html
My HTML
<a href="@controllers.routes.ResetController.ask">Forgot Password?</a>
When I click the page, it just stays on the current page?
Any Suggestions? thanks
如关于gitter的讨论:ResetController.ask()受@Secured批注保护,但应对此予以豁免。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.