mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-27 02:37:56 +00:00
auth changes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user