prova per inviti
This commit is contained in:
@@ -117,9 +117,9 @@ class StaffCubit extends Cubit<StaffState> {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> resetPasswordOrResendInviteLink(String email) async {
|
||||
Future<void> resetPassword(String email) async {
|
||||
try {
|
||||
await _repository.resetPasswordOrResendInviteLink(email);
|
||||
await _repository.resetPassword(email);
|
||||
emit(state.copyWith(status: StaffStatus.emailSent, error: null));
|
||||
} catch (e) {
|
||||
emit(state.copyWith(status: StaffStatus.error, error: e.toString()));
|
||||
|
||||
Reference in New Issue
Block a user