Detail
Detail
Bugfix
For login messages, the system checks whether they should be displayed. Among other things, it checks whether the last confirmation of the message was longer ago than the confirmation interval specified for the message. In particular, a confirmation interval of 0 should mean that the message must always be confirmed.
The check in the class
com.top_logic.addons.loginmessages.model.LoginMessagesUtil
is
return DateUtil.differenceInDays(new Date(), confirmDate) >= confirmDuration;
Here confirmDate is the date of the last confirmation.
As "confirmDate" is before "now", the value of
DateUtil.differenceInDays(new Date(), confirmDate)
is always <=0. In particular, a confirmDuration of 0 does not mean that a message has to be confirmed at every login.
The workaround of entering a very small value (-1000) does not work, as a value >=0 must be entered for the confirmDuration field.
Test
TestLoginMessagesUtil