Skip to content

Fix password validation (Fixes #2737)#4101

Open
Excali556 wants to merge 5 commits intoAgenta-AI:mainfrom
Excali556:fix-password-validation
Open

Fix password validation (Fixes #2737)#4101
Excali556 wants to merge 5 commits intoAgenta-AI:mainfrom
Excali556:fix-password-validation

Conversation

@Excali556
Copy link
Copy Markdown

@Excali556 Excali556 commented Apr 1, 2026

Summary

Previously, password validation relied on SuperTokens' default rules, which led to inconsistent behavior (e.g., requiring alphabet characters). This was not explicitly defined in the codebase and caused confusion during login and signup.

This change explicitly defines a custom password validator in the SuperTokens configuration, enforcing a minimum length of 8 characters. This ensures consistent and predictable behavior.

Testing

Verified locally

  • Ran python -m compileall . to ensure no syntax errors

  • Manually tested signup and login flows:

    • Passwords shorter than 8 characters are rejected
    • Passwords with 8 or more characters are accepted
    • Numeric-only passwords (≥8 chars) now work correctly

Added or updated tests

N/A

QA follow-up

N/A

Demo

N/A

Checklist

  • I have included a video or screen recording for UI changes, or marked Demo as N/A
  • Relevant tests pass locally
  • Relevant linting and formatting pass locally
  • I have signed the CLA, or I will sign it when the bot prompts me

… calling tracing/instrumentation methods before initialization failed silently. This adds a clear warning to guide users to call ag.init() first.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 1, 2026

@Excali556 is attempting to deploy a commit to the agenta projects Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Apr 1, 2026
@Excali556 Excali556 marked this pull request as draft April 3, 2026 13:49
@Excali556 Excali556 marked this pull request as ready for review April 3, 2026 13:50
@dosubot dosubot bot added Backend python Pull requests that update Python code labels Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend bug Something isn't working python Pull requests that update Python code size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant