added password reset - resend invite link

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-29 09:19:04 +02:00
parent fe5d1bd9e4
commit 05660124a7
4 changed files with 87 additions and 2 deletions

View File

@@ -102,6 +102,15 @@ class StaffCubit extends Cubit<StaffState> {
}
}
Future<void> resetPasswordOrResendInviteLink(String email) async {
try {
await _repository.resetPasswordOrResendInviteLink(email);
emit(state.copyWith(status: StaffStatus.emailSent, error: null));
} catch (e) {
emit(state.copyWith(status: StaffStatus.error, error: e.toString()));
}
}
// Associa un dipendente a un negozio
Future<void> assignMemberToStore(String staffId, String storeId) async {
try {