create visitor password

This commit is contained in:
mohammad
2024-08-19 09:59:25 +03:00
parent 753aa29a8a
commit 21f036388a
2 changed files with 4 additions and 4 deletions

View File

@ -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()));
} }
} }

View File

@ -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
), ),
), ),
), ),