forgotPassword method

Future<Response> forgotPassword({
  1. required String email,
})

Sends a password-reset link request to POST /api/password/sendResetLink.

The server sends a reset link to email if an account exists. Uses the public Dio client — no authentication required.

Throws a DioException on network or server error.

Implementation

Future<Response<dynamic>> forgotPassword({required String email}) async {
  return _publicDio.post<dynamic>('/api/password/sendResetLink', data: <String, dynamic>{'email': email});
}