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

View File

@ -254,7 +254,8 @@ class ForgetPasswordWebPage extends StatelessWidget {
forgetBloc.forgetValidate,
style: const TextStyle(
color: ColorsManager.red,
fontSize: 12,
fontSize: 10,
fontWeight: FontWeight.w700
),
),
),