mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
[Authentication] Some of the base class functions are not static
function, but - methods. Hence - 'self' should be used, and not 'cls'. Also - use a constant for duplicate string literal in LDAP authentication implementation.
This commit is contained in:
@@ -30,11 +30,11 @@ class BaseAuthentication(object):
|
||||
}
|
||||
|
||||
@abstractproperty
|
||||
def get_friendly_name(cls):
|
||||
def get_friendly_name(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def authenticate(cls):
|
||||
def authenticate(self):
|
||||
pass
|
||||
|
||||
def validate(self, form):
|
||||
@@ -80,7 +80,7 @@ class BaseAuthentication(object):
|
||||
|
||||
class InternalAuthentication(BaseAuthentication):
|
||||
|
||||
def get_friendly_name(cls):
|
||||
def get_friendly_name(self):
|
||||
return gettext("internal")
|
||||
|
||||
def validate(self, form):
|
||||
|
||||
Reference in New Issue
Block a user