Add password reset command

This commit is contained in:
Anton Tananaev 2025-07-14 07:39:30 -07:00
parent b576edaf78
commit a54e55c963

View file

@ -3,6 +3,7 @@ import 'dart:io';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;
import 'package:traccar_client/password_service.dart';
import 'preferences.dart';
@ -36,6 +37,8 @@ class PushService {
await bg.BackgroundGeolocation.start();
case 'positionStop':
await bg.BackgroundGeolocation.stop();
case 'factoryReset':
await PasswordService.setPassword('');
}
}