Class Login
java.lang.Object
org.apache.sling.starter.login.models.Login
@Model(adaptables=org.apache.sling.api.SlingJakartaHttpServletRequest.class)
public class Login
extends Object
Model to assist rendering the custom login page
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.sling.api.SlingJakartaHttpServletRequest -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an informational message according to the value provided in thej_reason_coderequest parameter.Return the resource path to go to after login is successful
-
Field Details
-
request
protected org.apache.sling.api.SlingJakartaHttpServletRequest request
-
-
Constructor Details
-
Login
public Login()
-
-
Method Details
-
getResource
Return the resource path to go to after login is successful- Returns:
- the resource path or null
-
getReason
Returns an informational message according to the value provided in thej_reason_coderequest parameter. Supported reasons are invalid credentials and session timeout.- Returns:
- The "translated" reason to render the login form or an empty string if there is no specific reason
-