Template.ftl for login check if reset-credentials

Hi, for register i do the following. Is there also a key for reset-credentials?

<#if !register??>

                <div id="headline-login">${msg("headline_login")}</div>

                <p id="intro-text">${msg("intro_text_login")}</p>                

            <#elseif register??>

                <div id="headline-login">${msg("headline_register")}</div>

                <p id="intro-text">${msg("intro_text_register")}</p>            

            <#else>

            </#if>

I have the same question. Or maybe a key for has-credentials/has-password?

This not something what is handled in the outer template.ftl, because it’s only relevant at places where a password is requested, and that’s not always the case.
Have a look into e.g. the login.ftl, there you’ll find a <#if realm.resetPasswordAllowed> expression.

Unfortunately, this does not help, because this should be displayed on the template.

Well, then use it on the template.
I just wanted to point to an example where this is used, but you can implement your own logic in the template.ftl like you desire.

Unfortunately this doesn’t help because <#if realm.resetPasswordAllowed> only specifies it possible or not and not where I am.