Class ResetPassword
java.lang.Object
io.github.sigmacasino.HTTPRoute
io.github.sigmacasino.GetRoute
io.github.sigmacasino.HTMLTemplateRoute
io.github.sigmacasino.routes.account.ResetPassword
- All Implemented Interfaces:
spark.Route
The ResetPassword class handles the GET request for displaying the reset password page.
-
Field Summary
Fields inherited from class io.github.sigmacasino.HTTPRoute
app, loginRequired, path
-
Constructor Summary
ConstructorsConstructorDescriptionResetPassword
(App app) Constructs a ResetPassword route with the specified application. -
Method Summary
Modifier and TypeMethodDescriptiongetHTMLTemplatePath
(spark.Request request) Returns the path to the HTML template for the reset password page.Returns a map of notification definitions to be used in the Jinjava HTML template.Methods inherited from class io.github.sigmacasino.HTMLTemplateRoute
handleGet, populateContext
Methods inherited from class io.github.sigmacasino.GetRoute
handle, registerSparkRoute
-
Constructor Details
-
ResetPassword
Constructs a ResetPassword route with the specified application.- Parameters:
app
- the application instance
-
-
Method Details
-
getNotificationDefinitions
Description copied from class:HTMLTemplateRoute
Returns a map of notification definitions to be used in the Jinjava HTML template. Intended to be overridden by subclasses, providing their own definitions based on all redirects which point the user to the route with any error or success tags.- Overrides:
getNotificationDefinitions
in classHTMLTemplateRoute
- Returns:
- the definitions as an URL name-notification message map.
-
getHTMLTemplatePath
Returns the path to the HTML template for the reset password page.- Specified by:
getHTMLTemplatePath
in classHTMLTemplateRoute
- Parameters:
request
- the HTTP request- Returns:
- the path to the HTML template
-