Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

bug: confirm password bug is fixed (#1084)

palash-signoz147476d8027d
diff --git a/frontend/src/pages/SignUp/SignUp.tsx b/frontend/src/pages/SignUp/SignUp.tsx
index 7a8258cfab..1a99e0a5a5 100644
--- a/frontend/src/pages/SignUp/SignUp.tsx
+++ b/frontend/src/pages/SignUp/SignUp.tsx
@@ -178,6 +178,20 @@ function SignUp({ version }: SignUpProps): JSX.Element {
const isNameVisible = getIsNameVisible();
+ useEffect(() => {
+ if (!isPasswordValid(password) && password.length) {
+ setIsPasswordPolicyError(true);
+ } else {
+ setIsPasswordPolicyError(false);
+ }
+
+ if (password !== confirmPassword) {
+ setConfirmPasswordError(true);
+ } else {
+ setConfirmPasswordError(false);
+ }
+ }, [password, confirmPassword]);
+
return (
<WelcomeLeftContainer version={version}>
<FormWrapper>
@@ -246,16 +260,6 @@ function SignUp({ version }: SignUpProps): JSX.Element {
onChange={(e): void => {
const updateValue = e.target.value;
setState(updateValue, setConfirmPassword);
- if (password !== updateValue) {
- setConfirmPasswordError(true);
- } else {
- setConfirmPasswordError(false);
- }
- if (!isPasswordValid(updateValue)) {
- setIsPasswordPolicyError(true);
- } else {
- setIsPasswordPolicyError(false);
- }
}}
required
id="UpdatePassword"