auth changes

This commit is contained in:
mohammad
2024-08-06 16:40:03 +03:00
parent 1f5a119c60
commit e88be3cf17
4 changed files with 46 additions and 28 deletions
+2
View File
@@ -98,6 +98,7 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
String newPassword = '';
String maskedEmail = '';
String otpCode = '';
String validate = '';
static Token token = Token.emptyConstructor();
static UserModel? user;
bool showValidationMessage = false;
@@ -118,6 +119,7 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
),
);
} catch (failure) {
validate='Something went wrong';
emit(const LoginFailure(error: 'Something went wrong'));
// emit(LoginFailure(error: failure.toString()));
return;