Skip to main content

Password Update

Peak supports secure password updates directly from the User Dashboard, accessible via the profile dropdown menu.

This feature is built on Laravel Jetstream and provides users with a simple interface to change their password safely, with backend validation and customizable rules.

How It Works

When a user submits a new password, Jetstream invokes the following action:

App\Actions\Fortify\UpdateUserPassword

This class handles:

  • Validating the user's current password
  • Enforcing password complexity rules
  • Updating the password securely

Password Validation Rules

The password validation logic is defined in the shared trait:

App\Actions\Fortify\PasswordValidationRules

This trait applies consistent password rules across:

  • Registration
  • Password Reset
  • Password Update

Internally, it uses the Laravel\Fortify\Rules\Password rule object. You can customize password security requirements using chainable methods:

use Laravel\Fortify\Rules\Password;

(new Password)->length(10) // Minimum 10 characters
->requireUppercase() // At least one uppercase letter
->requireNumeric() // At least one number
->requireSpecialCharacter(); // At least one special character

You can modify this logic globally by updating the trait.

for more information about Password Validation Rule, read the Password Update Jetstream Documentation.

Views / Pages

This functionality is rendered using:

resources/js/Themes/Breeze/Pages/Dashboard/Partials/UpdatePasswordForm.vue

You may adjust this component to customize the layout, text, or styling of the password update UI.

Summary

  • 🔒 Located in User Dashboard → Security → Password
  • 🧩 Logic handled in UpdateUserPassword and PasswordValidationRules
  • 🛠️ Validation rules are centralized and customizable
  • 💻 View component available for editing at: UpdatePasswordForm.vue

This setup ensures your application enforces secure, consistent password management across all areas of user authentication.