rnewson commented on a change in pull request #1087: Return friendly error
message when creating user with invalid password
URL: https://github.com/apache/couchdb/pull/1087#discussion_r159784123
##########
File path: src/couch/src/couch_passwords.erl
##########
@@ -66,7 +69,12 @@ pbkdf2(Password, Salt, Iterations) when is_binary(Password),
is_integer(Iterations),
Iterations > 0 ->
{ok, Result} = pbkdf2(Password, Salt, Iterations, ?SHA1_OUTPUT_LENGTH),
- Result.
+ Result;
+pbkdf2(Password, Salt, Iterations) when is_binary(Salt),
Review comment:
same comment as above.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services