def _authenticate(self): keywords = self.keywords() credentials = keywords["credentials"] name, passwd = _base64_decode(credentials).split(":", 1) assert name == self.user.name(), "Internal in consistancy, " "name != self.user.name()" entry = self.user.shadow_entry() if not entry.password_matches_crypt(passwd): raise EAuthenticationFailed() self.__credentials = credentials
def _authenticate(self): keywords = self.keywords() credentials = keywords['credentials'] name, passwd = _base64_decode(credentials).split(':', 1) assert name == self.user.name(), ("Internal in consistancy, " "name != self.user.name()") entry = self.user.shadow_entry() if not entry.password_matches_crypt(passwd): raise EAuthenticationFailed() self.__credentials = credentials
def name(klass, **keywords): credentials = keywords['credentials'] name, passwd = _base64_decode(credentials).split(':', 1) return name
def name(klass, **keywords): credentials = keywords["credentials"] name, passwd = _base64_decode(credentials).split(":", 1) return name