From 21f036388a72e86ae81f9ab94ab48de9fa097dc6 Mon Sep 17 00:00:00 2001 From: mohammad Date: Mon, 19 Aug 2024 09:59:25 +0300 Subject: [PATCH] create visitor password --- lib/pages/auth/bloc/auth_bloc.dart | 5 ++--- lib/pages/auth/view/forget_password_web_page.dart | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pages/auth/bloc/auth_bloc.dart b/lib/pages/auth/bloc/auth_bloc.dart index a4b9ec68..bfd42eaf 100644 --- a/lib/pages/auth/bloc/auth_bloc.dart +++ b/lib/pages/auth/bloc/auth_bloc.dart @@ -83,13 +83,12 @@ class AuthBloc extends Bloc { emit(const TimerState(isButtonEnabled: true, remainingTime: 0)); emit(SuccessForgetState()); } else if (response == "You entered wrong otp") { - forgetValidate = response; // Set the validation message + forgetValidate = 'Wrong one time password.'; emit(AuthInitialState()); } } catch (failure) { - forgetValidate='Invalid Credentials!'; + // forgetValidate='Invalid Credentials!'; emit(AuthInitialState()); - // emit(FailureForgetState(error: failure.toString())); } } diff --git a/lib/pages/auth/view/forget_password_web_page.dart b/lib/pages/auth/view/forget_password_web_page.dart index 1b65423a..a2a939e3 100644 --- a/lib/pages/auth/view/forget_password_web_page.dart +++ b/lib/pages/auth/view/forget_password_web_page.dart @@ -254,7 +254,8 @@ class ForgetPasswordWebPage extends StatelessWidget { forgetBloc.forgetValidate, style: const TextStyle( color: ColorsManager.red, - fontSize: 12, + fontSize: 10, + fontWeight: FontWeight.w700 ), ), ),