changePassword method

  1. @override
Future changePassword({
  1. required MethodCall call,
})
override

Implementation

@override
Future changePassword({required MethodCall call}) async {
  final payload = jsonDecode(call.arguments);
  final oldPassword = payload["oldPassword"];
  final newPassword = payload["newPassword"];
  final confirmPassword = payload["confirmPassword"];
  final result = await _getModuleInstance().changePassword(oldPassword: oldPassword, newPassword: newPassword, confirmPassword: confirmPassword);

  return {
    "success": result.success,
    "message": result.message,
  };
}