Skip to content

Commit

Permalink
#25 Rename key authentication capability
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Sep 6, 2017
1 parent b28d69d commit 1f1fb9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/org/elastic4play/services/UserSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/org/elastic4play/services/auth/LdapAuthSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 1f1fb9f

Please sign in to comment.