Fixes in plugin

This commit is contained in:
2020-10-16 17:43:00 +03:00
parent 5463b603d6
commit ff5e19e8d0
3 changed files with 7 additions and 6 deletions
@@ -40,7 +40,7 @@ class AuthSourceLdapPasswd < AuthSourceLdap
def self.change_password_allowed?(user)
return false if user.nil?
AuthSourceLdapPasswd.name.eql?(user.auth_source.type)
AuthSourceLdapPasswd.name.eql?( user.auth_source .nil? ? "" : user.auth_source.type)
end
def self.is_password_valid(password)