mirror of
https://github.com/ente-io/ente.git
synced 2025-07-01 13:13:35 +00:00
14 lines
342 B
Dart
14 lines
342 B
Dart
import "package:photos/services/machine_learning/face_ml/person/person_service.dart";
|
|
|
|
Future<bool> checkIfEmailAlreadyAssignedToAPerson(
|
|
String email,
|
|
) async {
|
|
final persons = await PersonService.instance.getPersons();
|
|
for (var person in persons) {
|
|
if (person.data.email == email) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|