Password changes
This change is available as of EnergyAI Release v3.50 (CE-API version v13.80.0)
Migration
CE-API error handling is changing in order to throw various different exception codes in case of Invalid Passwords mapped to various policies being violated from the password provided. These exceptions may be thrown from the following endpoints:
The password policies supported are:
- Minimum password length
- Maximum password length
- Password contains uppercase letter
- Password contains lowercase letter
- Password contains symbol character
- Password contains numeric character
Before Changes
When validating password CE-API will throw the 264 error code with different error messages explaining the violation.
After Changes
When validating passwords, CE-API will return the following error codes:
Error Code | Description |
---|---|
264 | Invalid password |
295 | Password is too short |
296 | Password is too long |
297 | Password must include at least one lowercase letter |
298 | Password must include at least one uppercase letter |
299 | Password must include at least one special character |
300 | Password contains forbidden characters |
301 | Password must include at least one number |
These error codes will help identify specific validation issues with the provided password based on the password policies in effect without the application relying on the exception message.
Updated about 13 hours ago