For password reset link keycloak by default shows link expiration time minutes but we want to show that in hours.
For this, we have made modification in keycloak email theme .ftl file (password-reset.ftl). These changes are working fine if we do that in keycloak base email theme (/opt/keycloak/themes/base/email). But these changes are getting discarded after keycloak deployment/upgrade.
To avoid this we have moved this theme to custom theme folder (/opt/keycloak/themes/mytheme/email) and chosen custom email theme for an email from keycloak admin realm theme configuration but still, keycloak not using a custom theme for an email.
File: themes/mytheme/email/html/password-reset.ftl
code that displays time in hours instead of minutes:
<html>
<body>
${msg("passwordResetBodyHtml",link, (linkExpiration/60)?string["0"], realmName)?no_esc}
</body>
</html>
Selected mytheme for an email from keycloak realm configuration configuration screenshot here