Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(deriv_auth): improve reset password error handling #417

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class DerivResetPassCubit extends Cubit<DerivResetPassState>
/// Check if password is reset
if (isPasswordReset) {
emit(const DerivResetPassPasswordChangedState());
} else {
emit(const DerivResetPassErrorState());
}
} on Exception catch (e) {
emit(DerivResetPassErrorState(errorMessage: e.toString()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DerivResetPassPasswordChangedState extends DerivResetPassState {
class DerivResetPassErrorState extends DerivResetPassState {
/// Initializes Reset pass error State.
const DerivResetPassErrorState({
required this.errorMessage,
this.errorMessage,
});

/// Error message.
Expand Down
Loading