Commit badc6ffd authored by michael.simon's avatar michael.simon
Browse files

Display read only token message on login also

parent 69ff38ff
......@@ -108,6 +108,14 @@ public class TwoFaLoginBean implements Serializable {
return user;
}
public Boolean getReadOnly() {
return tokenList.getReadOnly();
}
public String getManagementUrl() {
return tokenList.getManagementUrl();
}
public LinotpTokenResultList getTokenList() {
return tokenList;
}
......
......@@ -21,6 +21,12 @@
<h:form id="form" prependId="false">
<p:panel header="#{messages.twofa_login}">
<p:outputPanel rendered="#{twoFaLoginBean.readOnly}">
<div><h:outputText value="#{messages.twofa_list_readonly}"/></div>
<div><a href="#{twoFaLoginBean.managementUrl}" target="_blank">#{twoFaLoginBean.managementUrl}</a></div>
</p:outputPanel>
<div style="margin-top: 8px; margin-bottom: 16px;"><h:outputText value="#{messages.twofa_login_text}"/></div>
<div><p:messages showDetail="true" /></div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment