Add password reset command
This commit is contained in:
parent
b576edaf78
commit
a54e55c963
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import 'dart:io';
|
||||||
|
|
||||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||||
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;
|
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;
|
||||||
|
import 'package:traccar_client/password_service.dart';
|
||||||
|
|
||||||
import 'preferences.dart';
|
import 'preferences.dart';
|
||||||
|
|
||||||
|
|
@ -36,6 +37,8 @@ class PushService {
|
||||||
await bg.BackgroundGeolocation.start();
|
await bg.BackgroundGeolocation.start();
|
||||||
case 'positionStop':
|
case 'positionStop':
|
||||||
await bg.BackgroundGeolocation.stop();
|
await bg.BackgroundGeolocation.stop();
|
||||||
|
case 'factoryReset':
|
||||||
|
await PasswordService.setPassword('');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue