this is my login page and i want to implement a new feature where users are prompted to enter their new password and Pin of their choice after the first login. The password rules are it must be at least 8 character, to contain atleast 1 uppercase letter, atleast 1 lowercase, at least 1 special character and atleast 1 number. On the PIN the rule is it must be 6 numbers only. Create something that i can see
I'll create a first-time login flow that prompts users to set a new password and PIN after their initial login. This will include validation for the password and PIN requirements you specified.
This implementation creates a first-time login flow with two steps:
Step 1: Password Creation
Users must create a password that meets all requirements:
Step 2: PIN Creation
To integrate this with your existing login flow:
/first-loginfirstLogin flag in your user database)You can customize the styling and behavior further to match your application's needs.