-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
organizations
Describe the bug
The org-invite.ftl templates (text and html) are supplied with a linkExpiration-variable that should reflect the amount of minutes in which the link will expire.
In practice it holds a value of around 28819808, which is close to the amount of minutes since 1970-01-01.
Version
26.0.0
Regression
- The issue is a regression
Expected behavior
linkExpiration to hold a variable that represents the amount of minutes in which the link will expire.
Actual behavior
linkExpiration hold a value close to the amount of minutes after 1970-01-01. It even seems formatted for my locale (28,819,808), which I think isn't desired per se.
How to Reproduce?
Invite yourself to an organization. You'll see that the email contains a This link will expire within with a really large number.
Anything else?
See https://github.com/keycloak/keycloak/blob/26.0.0/services/src/main/java/org/keycloak/organization/admin/resource/OrganizationInvitationResource.java#L114. No logic takes place to subtract the current unix timestamp.