lostPassword method Null safety
Allow to request a password reset for the account using the email
address.
Return true if the request is successful BUT this doesn't mean that your glpi is configured to send emails.
Check the glpi's configuration to see the prerequisites (notifications need to be enabled).
If passwordForgetToken
AND newPassword
are set, the password will be changed with the value of newPassword
instead.
Sending passwordForgetToken
without newPassword
and the opposite will throw an ArgumentError.
Reference: https://github.com/glpi-project/glpi/blob/master/apirest.md#lost-password.
Implementation
Future<bool> lostPassword(String email,
{String? passwordForgetToken, String? newPassword});