sendPasswordResetEmail static method
sends password reset email to provided email
Implementation
static Future<bool> sendPasswordResetEmail(String email, AuthenticationProvider authProvider) async {
bool isPasswordResetEmailSent = false;
try{
await FirebaseAuth.instance.sendPasswordResetEmail(email: email);
isPasswordResetEmailSent = true;
}on FirebaseAuthException catch(e){
authProvider.authExceptionType = AuthExceptions.typeOf[e.code];
}catch(e){
printToConsole("Exception in FirebaseManageUsers.sendPasswordResetEmail: ${e.toString()}");
authProvider.authExceptionType = AuthExceptionType.unknown;
}
return isPasswordResetEmailSent;
}