Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Validate max length for DB password at project creation and DB password reset

gitstart9ac23795aeb3
diff --cc studio/lib/helpers.ts
index ec95a3b4eb2,ec95a3b4eb2..eb5cebe4918
--- a/studio/lib/helpers.ts
+++ b/studio/lib/helpers.ts
@@@ -166,6 -166,6 +166,10 @@@ export async function passwordStrength(
let strength = 0
if (value && value !== '') {
++ if(value.length > 99){
++ message = `${PASSWORD_STRENGTH[0]} Maximum length of password exceeded`
++ warning = `Password should be less than 100 characters`
++ } else {
const response = await post(`${API_URL}/profile/password-check`, { password: value })
if (!response.error) {
const { result } = response
@@@ -186,6 -186,6 +190,7 @@@
}
}
}
++}
return {
message,