Describe the bug
When creating a user and the temporary password is set by Cognito, the verification for password on Laravel (both attempt login or reset password) generate an error, but the password is correctly valid.
To Reproduce
Steps to reproduce the behavior:
I register a user with inviteUser, so Cognito assign a temporary password. The password for the user pool is set with the default settings (1 lowercase, 1 uppercase, 1 number 1 special char, 8 chars length).
The regex of special chars that use AWS has many characters compared with the regex on AwsCognitoUserPool ((?=.*[!@#$%^&*])).
When i try to login with a temporary password (for ex. 3,Wtbz8h, this is a valid temporary password generated by Cognito) i recieve an error of password validation, because the regex implemented on package is too more restrictive.
Expected behavior
The regex for password validation must be follow the same characters of Cognito special chars.
Additional context
I create the action for login and reset password with api routes. Creation of user via cli command.
Describe the bug When creating a user and the temporary password is set by Cognito, the verification for password on Laravel (both attempt login or reset password) generate an error, but the password is correctly valid.
To Reproduce Steps to reproduce the behavior: I register a user with
inviteUser
, so Cognito assign a temporary password. The password for the user pool is set with the default settings (1 lowercase, 1 uppercase, 1 number 1 special char, 8 chars length).The regex of special chars that use AWS has many characters compared with the regex on
AwsCognitoUserPool
((?=.*[!@#$%^&*])
). When i try to login with a temporary password (for ex.3,Wtbz8h
, this is a valid temporary password generated by Cognito) i recieve an error of password validation, because the regex implemented on package is too more restrictive.Expected behavior The regex for password validation must be follow the same characters of Cognito special chars.
Additional context I create the action for login and reset password with api routes. Creation of user via cli command.