Annotation Interface PasswordChangeRequired


@Target(FIELD) @Retention(RUNTIME) public @interface PasswordChangeRequired
Marks a Boolean field of a user entity that indicates whether the user is required to change the password at the next logon.

When this annotation is present on a field:

  • AbstractDatabaseUserRepository resets the field to false when the user changes the password, and sets it to true when the administrator resets the password.
  • UI shows a modal forced change-password dialog after the user logs in.
Only one field of a class can have this annotation.