Home / Function/ updatePasswordStrength() — supabase Function Reference

updatePasswordStrength() — supabase Function Reference

Architecture documentation for the updatePasswordStrength() function in DatabasePasswordInput.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  537a9369_7861_9dbc_9f5f_8cee90710c24["updatePasswordStrength()"]
  8fd8580c_faf1_b1c9_7e47_3f97ae36bc45["DatabasePasswordInput()"]
  8fd8580c_faf1_b1c9_7e47_3f97ae36bc45 -->|calls| 537a9369_7861_9dbc_9f5f_8cee90710c24
  style 537a9369_7861_9dbc_9f5f_8cee90710c24 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/ProjectCreation/DatabasePasswordInput.tsx lines 18–35

const updatePasswordStrength = async (form: UseFormReturn<CreateProjectForm>, value: string) => {
  try {
    const { warning, message, strength } = await passwordStrength(value)
    form.setValue('dbPassStrength', strength, { shouldValidate: false, shouldDirty: false })
    form.setValue('dbPassStrengthMessage', message ?? '', {
      shouldValidate: false,
      shouldDirty: false,
    })
    form.setValue('dbPassStrengthWarning', warning ?? '', {
      shouldValidate: false,
      shouldDirty: false,
    })

    form.trigger('dbPass')
  } catch (error) {
    console.error(error)
  }
}

Subdomains

Frequently Asked Questions

What does updatePasswordStrength() do?
updatePasswordStrength() is a function in the supabase codebase.
What calls updatePasswordStrength()?
updatePasswordStrength() is called by 1 function(s): DatabasePasswordInput.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free