- Android SDK 4.0 (API Level 15) or above
- Liferay Portal 6.2 (CE or EE), Liferay 7.0 CE, Liferay DXP
- Liferay Screens Compatibility plugin (for Liferay Portal CE or Liferay Portal EE).
- Android SDK 4.0 (API Level 15) and above
- Visual Studio 7.2
- Mono .NET framework 188.8.131.52
The Forgot Password Screenlet sends an email to registered users with their new passwords or password reset links, depending on the server configuration. The available authentication methods are
- Email address
- Screen name
- User id
Screenlets in Liferay Screens call JSON web services in the portal. This Screenlet calls the following services and methods.
To use Forgot Password Screenlet, the portal must be configured to allow users to request new passwords. The below sections show you how to do this. Also, Liferay Screens’ Compatibility Plugin must be installed.
The authentication method configured in the portal can be different from the one
used by this Screenlet. For example, it’s perfectly fine to use
for sign in authentication, but allow users to recover their password using the
Password recovery depends on the authentication settings in the portal:
If these options are both unchecked, password recovery is disabled. If both options are checked, an email containing a password reset link is sent when a user requests it. If only the first option is checked, an email containing a new password is sent when a user requests it.
For more details on authentication in Liferay Portal, please refer to the Configuring Portal Settings section of the User Guide.
An anonymous request can be made without the user being logged in. However, authentication is needed to call the API. To allow this operation, the portal administrator should create a specific user with minimal permissions.
This Screenlet doesn’t support offline mode. It requires network connectivity.
|The layout used to show the View.|
|The user name, email address, or |
|The password to use to authenticate the request.|
|When set, a user within the specified company is authenticated. If the value is set to |
|The authentication method presented to the user. This can be |
The Forgot Password Screenlet delegates some events to an object that implements
ForgotPasswordListener interface. This interface lets you implement the
onForgotPasswordRequestSuccess(boolean passwordSent): Called when a password reset email is successfully sent. The boolean parameter determines whether the email contains the new password or a password reset link.
onForgotPasswordRequestFailure(Exception e): Called when an error occurs in the process.