For builders shipping this week
"Password is known to be weak and easy to guess"? 5 checks for Supabase and Lovable signups
You signed up with a strong test password, so the form works. Your first real user types the password they use everywhere, and Supabase says no. Most generated forms then show "Something went wrong", or nothing. FirstUser opens your live URL like a brand-new visitor, signs up, logs in and tells you which step failed, with a screenshot and a fix prompt for Lovable, Bolt or Cursor. Run a free signup test.
When a password breaks one of your project's password rules, Supabase Auth refuses the sign-up with HTTP 422 and the error code weak_password. The answer also says which rule failed, in a reasons list:
| Reason | Message from Supabase |
|---|---|
length | "Password should be at least 8 characters." (the number is your project's setting) |
characters | "Password should contain at least one character of each: …" |
pwned | "Password is known to be weak and easy to guess, please choose a different one." |
If several rules fail, Supabase joins the sentences into one message. The same check runs when someone sets a new password (reset or "change password") and when you create a user as admin.
1. Your form hides the reason
The fix that helps every case: show the user what Supabase said. In supabase-js the error is an AuthWeakPasswordError with error.code === 'weak_password' and error.reasons:
import { isAuthWeakPasswordError } from '@supabase/supabase-js'
const { error } = await supabase.auth.signUp({ email, password })
if (isAuthWeakPasswordError(error)) {
// error.reasons: ['length' | 'characters' | 'pwned']
showFieldError('password', error.message)
}Put the message under the password field, not in a toast that disappears after two seconds. Ask your builder: "When sign-up fails with error code weak_password, show error.message under the password field and keep the email filled in."
2. "Password should be at least N characters": the form and the server disagree
Supabase enforces a minimum length (6 is the lowest it allows; Supabase recommends 8 or more). Generated forms often check their own number, for example "min 6", while the project asks for 8. The form says OK, the server says no.
Fix: use the same number in the form's hint, the form's validation and the project setting. Where it lives:
- Lovable's built-in backend (Lovable Cloud): More → Users → Settings → Email → Minimum password length.
- Your own Supabase project: in the Supabase dashboard under Authentication, in the Email provider's password settings.
If the number in the error is not the one you set, your live site talks to a different project than the one you changed. Open DevTools → Network on the live URL, sign up, and look at the host of the …supabase.co/auth/v1/signup request.
Supabase also refuses passwords longer than 72 characters ("Password cannot be longer than 72 characters"). If your form allows 128, lower it to 72.
3. "Password should contain at least one character of each": a rule nobody told the user
Both Supabase and Lovable Cloud can require character types: letters and digits, upper- and lowercase plus digits, or all of that plus symbols. Lovable's default is "No required characters", so if your app has this rule, someone turned it on, sometimes after a "make login more secure" prompt.
Fix: write the rule next to the field before the user types ("At least 8 characters, with upper- and lowercase letters, a number and a symbol"), and check it live as they type. If the rule is stricter than your users need, relax it. Length and the leaked-password check protect more than a symbol rule.
4. "Password is known to be weak and easy to guess": the leaked-password check
This one has nothing to do with length. Supabase checks the password against the HaveIBeenPwned list of leaked passwords and rejects matches. Summer2024! can pass every length and character rule and still be refused.
- Lovable Cloud: "Password HIBP check" under More → Users → Settings → Email. Lovable's docs say it is enabled by default on new projects.
- Your own Supabase project: "leaked password protection", available on the Pro plan and above.
Keep it on. It blocks the passwords attackers try first. But tell the user why: "This password has appeared in a data breach. Please choose a different one." Without that sentence, people assume your app is broken and leave.
5. Password reset fails with the same error
The rules also apply when a user sets a new password with updateUser({ password }). A user who resets to a short or leaked password gets weak_password on the reset page, and generated reset pages often show nothing and leave the user stuck in the middle of the flow.
Fix: handle weak_password on the reset and "change password" page exactly like on sign-up (check 1). If the reset link itself opens localhost, see Supabase password reset opens localhost.
Existing users are not locked out when you make the rules stricter: they still sign in with their old password. Supabase returns a weakPassword object next to the session in signInWithPassword, so you can ask them to pick a better one.
Test it like a stranger, after every change
Use a private window, your real live domain and a never-used email address. Then try the passwords real people use: one that is one character too short, one without the required character type, and a common one like Password123!. Each attempt should show a clear sentence under the field and keep the email filled in. If you'd rather not repeat that after every prompt, let FirstUser be the first user.
FAQ
Should I turn the leaked-password check off so sign-ups work?
No. Show the reason instead (check 1 and 4). A clear message fixes the drop-off; turning the check off just lets leaked passwords in.
My own sign-up works. Why don't my users' sign-ups?
Because you test with a strong or generated password. The rules only bite on the passwords real people pick. Test with a short, a simple and a common password, as described above.
I fixed the password and now get a different error.
That's progress. The usual next ones are "Email not confirmed" or "Invalid login credentials" right after signup, "Signups not allowed for this instance" or a CAPTCHA error.
Is this specific to Lovable?
No. Any app using Supabase Auth with email and password behaves this way, whether it was built with Lovable, Bolt, Cursor, Replit or by hand. Lovable's built-in backend just has its own settings page for the rules.
Can FirstUser catch this?
FirstUser signs up on your live URL with a new email and a generated password. The generated password is random, with upper- and lowercase letters and a digit but no symbol, so the leaked-password check usually won't reject it, and a symbol rule would make the test fail at sign-up. If your page shows the error text in a visible role="alert" or data-error element, the sign-up step is marked failed with "The sign-up form was rejected." and the diagnosis includes that text. If the page shows nothing, the step fails with "Sign-up was submitted, but the page did not show a success state." Either way you get a screenshot of the step. FirstUser does not try weak passwords on purpose, so test the common-password case yourself. Run a free signup test.