Assertion check where there shouldn't be any.

This commit is contained in:
Roland Hedberg 2013-12-20 11:46:16 +01:00
parent 2ee92da21d
commit b631f65e44
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ class UsernamePasswordMako(UserAuthnMethod):
logger.debug("passwd: %s" % self.passwd)
# verify username and password
try:
assert self._verify(_dict["password"][0], _dict["login"][0])
self._verify(_dict["password"][0], _dict["login"][0])
except (AssertionError, KeyError):
resp = Unauthorized("Unknown user or wrong password")
else: