passwordResetRequest method
Implementation
Future<void> passwordResetRequest(BuildContext context) async {
await okTransition(
context: context,
title: 'Password Reset',
subTitle: 'Thanks!',
message:
'You will shortly receive an email, please follow the instructions to reset your password.',
loadingImage: 'assets/' + _mojo.loadingImage(),
loadingText: 'SENDING REQUEST...',
loadingTask: () async =>
await _authService.passwordResetRequestAsync(_model.emailAddress),
onSuccess: () {
pop(context);
},
onFail: ({error, required result, message}) async {
await DialogHelper.showFailure(context: context, result: result);
});
}