mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
create visitor password
This commit is contained in:
@ -83,13 +83,12 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {
|
|||||||
emit(const TimerState(isButtonEnabled: true, remainingTime: 0));
|
emit(const TimerState(isButtonEnabled: true, remainingTime: 0));
|
||||||
emit(SuccessForgetState());
|
emit(SuccessForgetState());
|
||||||
} else if (response == "You entered wrong otp") {
|
} else if (response == "You entered wrong otp") {
|
||||||
forgetValidate = response; // Set the validation message
|
forgetValidate = 'Wrong one time password.';
|
||||||
emit(AuthInitialState());
|
emit(AuthInitialState());
|
||||||
}
|
}
|
||||||
} catch (failure) {
|
} catch (failure) {
|
||||||
forgetValidate='Invalid Credentials!';
|
// forgetValidate='Invalid Credentials!';
|
||||||
emit(AuthInitialState());
|
emit(AuthInitialState());
|
||||||
|
|
||||||
// emit(FailureForgetState(error: failure.toString()));
|
// emit(FailureForgetState(error: failure.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -254,7 +254,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
|
|||||||
forgetBloc.forgetValidate,
|
forgetBloc.forgetValidate,
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
color: ColorsManager.red,
|
color: ColorsManager.red,
|
||||||
fontSize: 12,
|
fontSize: 10,
|
||||||
|
fontWeight: FontWeight.w700
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user