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

@@ -60,6 +60,17 @@ class StaffRepository {
}
}
Future<void> resetPasswordOrResendInviteLink(String email) async {
try {
await _supabase.auth.resetPasswordForEmail(
email,
redirectTo: 'https://flux-web-invite.marco-6ba.workers.dev/',
);
} catch (e) {
throw Exception("Errore nell'invio del link: $e");
}
}
// --- LOGICA DI GIUNZIONE (Staff <-> Store) ---
// Recupera i membri assegnati a uno specifico negozio