Commit 3c547f7d authored by Niels Möller's avatar Niels Möller

* src/server_password.c (do_authenticate): Pass continuation and

exception handler to USER_VERIFY_PASSWORD.

Rev: src/server_password.c:1.31
parent 82dff464
......@@ -102,20 +102,7 @@ do_authenticate(struct userauth *s,
return;
}
if (USER_VERIFY_PASSWORD(user, password, 1))
{
COMMAND_RETURN(c, user);
return;
}
else
{
static const struct exception bad_passwd
= STATIC_EXCEPTION(EXC_USERAUTH, "Wrong password");
KILL(user);
EXCEPTION_RAISE(e, &bad_passwd);
return;
}
USER_VERIFY_PASSWORD(user, password, c, e);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment