diff --git a/app/org/elastic4play/services/UserSrv.scala b/app/org/elastic4play/services/UserSrv.scala index 72cfb92..51af6c8 100644 --- a/app/org/elastic4play/services/UserSrv.scala +++ b/app/org/elastic4play/services/UserSrv.scala @@ -39,7 +39,7 @@ trait User { object AuthCapability extends Enumeration { type Type = Value - val changePassword, setPassword, renewKey = Value + val changePassword, setPassword, allowKey = Value } trait AuthSrv { diff --git a/app/org/elastic4play/services/auth/LdapAuthSrv.scala b/app/org/elastic4play/services/auth/LdapAuthSrv.scala index 5926584..6e08331 100644 --- a/app/org/elastic4play/services/auth/LdapAuthSrv.scala +++ b/app/org/elastic4play/services/auth/LdapAuthSrv.scala @@ -50,7 +50,7 @@ class LdapAuthSrvFactory @Inject() ( private[LdapAuthSrv] lazy val logger = Logger(getClass) val name = "ldap" override val capabilities: Set[AuthCapability.Value] = keyAttribute match { - case Some(_) ⇒ Set(AuthCapability.changePassword, AuthCapability.renewKey) + case Some(_) ⇒ Set(AuthCapability.changePassword, AuthCapability.allowKey) case None ⇒ Set(AuthCapability.changePassword) }