You need to sign in to do that
Don't have an account?

Password Policies
Hi All,
Is there a way in Apex to see if the specified text passes the salesforce password policies.
Use Case: In our customer portal, we are allowing new users to register for the portal. So we are inserting a new user and setting the password in the same call. Now if the password doesnt pass the password policies, than the user is created in sf, but the password is not set. (we are not using temporary password approach)
Thanks
Sid
Is there a way in Apex to see if the specified text passes the salesforce password policies.
Use Case: In our customer portal, we are allowing new users to register for the portal. So we are inserting a new user and setting the password in the same call. Now if the password doesnt pass the password policies, than the user is created in sf, but the password is not set. (we are not using temporary password approach)
Thanks
Sid
What about errors like 'INVALID_NEW_PASSWORD: Your password cannot be easy to guess. Please choose a different one.'. How can these be captured in the REGEX ?