showPasswordReset
Description
Show the widget allowing the current profile to edit his password after receiving a password reset email.
Examples
client.showPasswordReset({
container: 'password-reset-container',
loginLink: 'https://example.com/auth-callback',
canShowPassword: true,
onReady: instance => {
// Destroy the widget
// if (...) instance.destroy()
},
theme: {
primaryColor: '#274890',
borderRadius: '#374890'
},
i18n: {
'passwordReset.intro': 'This widget will only work if you access it by clicking on the URL in the email sent after requesting a password reset on the Authentification widget. Enter then your new password.',
'newPassword': 'Your new password',
'passwordConfirmation': 'Confirm your new password'
}
})
Parameters
The DOM element or the |
|||||||||
The URL to which the user is redirected after a password reset. |
|||||||||
Whether or not to provide the display password in clear text option. Defaults to |
|||||||||
Callback function called after the widget has been successfully loaded and rendered inside the container. The callback is called with the widget instance. |
|||||||||
The options to set up to customize the appearance of the widget. Below is an example of some of the theme attributes. For a full list, see theme attributes.
|
|||||||||
Widget labels and error messages to override. Falls back to the default wordings in
|
theme
attributes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|