Changed the way in which authentication type is shown

FEA: ItEr74S09LdapAuhentication
This commit is contained in:
Ignacio Diaz Teijido 2011-11-15 20:26:44 +01:00 committed by Manuel Rego Casasnovas
parent c258e09708
commit 9bcabf9e0d
2 changed files with 8 additions and 2 deletions

View file

@ -286,4 +286,10 @@ public class User extends BaseEntity implements IHumanIdentifiable{
return loginName;
}
public String getAuthenticationMethod() {
if (isLibrePlanUser())
return "LibrePlan";
return "LDAP";
}
}

View file

@ -26,7 +26,7 @@
<newdatasortablecolumn label="${i18n:_('User login name')}" sort="auto(loginName)" />
<newdatasortablecolumn label="${i18n:_('Disabled')}" />
<newdatasortablecolumn label="${i18n:_('Administrator')}" />
<newdatasortablecolumn label="${i18n:_('LibrePlan user')}" />
<newdatasortablecolumn label="${i18n:_('Authentication type')}" />
<newdatasortablecolumn label="${i18n:_('Actions')}" />
</columns>
<rows>
@ -34,7 +34,7 @@
<label value="@{user.loginName}" />
<checkbox checked="@{user.disabled}" disabled="true" />
<checkbox checked="@{user.administrator}" disabled="true" />
<checkbox checked="@{user.librePlanUser}" disabled="true" />
<label value="@{user.authenticationMethod}" />
<hbox>
<button sclass="icono" image="/common/img/ico_editar1.png"
hoverImage="/common/img/ico_editar.png"