Newer Version Available
LoginFormController Class
Namespace
LoginFormController Methods
The following are methods for LoginFormController.
getForgotPasswordUrl()
Signature
public static String getForgotPasswordUrl()
Return Value
Type: String
getIsSelfRegistrationEnabled()
Signature
public static Boolean getIsSelfRegistrationEnabled()
Return Value
Type: Boolean
getIsUsernamePasswordEnabled()
Signature
public static Boolean getIsUsernamePasswordEnabled()
Return Value
Type: Boolean
getSelfRegistrationUrl()
Signature
public static String getSelfRegistrationUrl()
Return Value
Type: String
login(username, password, startUrl)
Logs in the user with the provided username, password, and path to
the page that users see after they log in.
Signature
public static String login(String username, String password, String startUrl)
Parameters
Return Value
Type: String
loginGetPageRefUrl(username, password, startUrl)
Logs in the user using the specified username and password. If login
is successful in a Lightning environment, the user is redirected to the page specified in the
startUrl. In a non-Lightning environment, use the
startUrl returned by the method to program a
redirect. If login fails, an error string is returned.
Signature
public static String loginGetPageRefUrl(String username, String password, String startUrl)
Parameters
Return Value
Type: String