stages/identification: add error handling when password isn't set
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
eb02c96281
commit
f61736e3d1
|
@ -96,7 +96,9 @@ class IdentificationChallengeResponse(ChallengeResponse):
|
||||||
# No password stage select, don't validate the password
|
# No password stage select, don't validate the password
|
||||||
return attrs
|
return attrs
|
||||||
|
|
||||||
password = attrs["password"]
|
password = attrs.get("password", None)
|
||||||
|
if not password:
|
||||||
|
LOGGER.warning("Password not set for ident+auth attempt")
|
||||||
try:
|
try:
|
||||||
user = authenticate(
|
user = authenticate(
|
||||||
self.stage.request,
|
self.stage.request,
|
||||||
|
|
Reference in New Issue