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 CodeDescription
264Invalid password
295Password is too short
296Password is too long
297Password must include at least one lowercase letter
298Password must include at least one uppercase letter
299Password must include at least one special character
300Password contains forbidden characters
301Password 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.