Commit e06d1ee7 authored by Niels Möller's avatar Niels Möller
Browse files

* src/server_password.c (do_authenticate): Use the new

USER_VERIFY_PASSWORD method.

Rev: src/server_password.c:1.28
parent 1b6c5cd2
...@@ -79,7 +79,7 @@ do_authenticate(struct userauth *s, ...@@ -79,7 +79,7 @@ do_authenticate(struct userauth *s,
if ( (password = parse_string_copy(args)) if ( (password = parse_string_copy(args))
&& parse_eod(args)) && parse_eod(args))
{ {
struct unix_user *user; struct user *user;
password = utf8_to_local(password, 1, 1); password = utf8_to_local(password, 1, 1);
...@@ -102,7 +102,7 @@ do_authenticate(struct userauth *s, ...@@ -102,7 +102,7 @@ do_authenticate(struct userauth *s,
return; return;
} }
if (verify_password(user, password, 1)) if (USER_VERIFY_PASSWORD(user, password, 1))
{ {
COMMAND_RETURN(c, user); COMMAND_RETURN(c, user);
return; return;
......
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