PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Password complexity and X-previous passwords check

mikemastercorp

Sep 19th, 2023 08:07 AM

Hello guys.

I was looking through the documentation and any manuals I can find about the password complexity requirement and if there is some functionality about X-previous passwords?

For example, if a user request a password check and types a password of 4 characters, is it feasible easily to request/validate higher complexity and also check if the new password is one of the previous X passwords?

bobbyiliev

Sep 20th, 2023 03:42 AM

Hi there,

You can find the password validation logic for the registration form here:

RegisterController.php#L58-L74

Currently it is as follows:

'password' => 'required|string|min:6|confirmed'

For the password change functionality inside the user settings profile, the logic can be found here:

SettingsController.php#L75-L91

But you can adjust both if you need to.

Let me know if you have any questions!