Email confirmation page after SignUp
This commit is contained in:
@@ -191,6 +191,15 @@ class AccountProvider extends ChangeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> resendVerificationEmail(String email) async {
|
||||
try {
|
||||
await AccountService.resendVerificationEmail(email);
|
||||
} catch (e) {
|
||||
_setResource(_resource.copyWith(error: toException(e)));
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> logout() async {
|
||||
_authState = AuthState.empty;
|
||||
_setResource(_resource.copyWith(isLoading: true, error: null));
|
||||
|
||||
Reference in New Issue
Block a user