rnewson commented on a change in pull request #1160: Add support for Bcrypt
password hashing
URL: https://github.com/apache/couchdb/pull/1160#discussion_r168950814
##########
File path: src/couch/src/couch_httpd_auth.erl
##########
@@ -309,7 +309,12 @@ handle_session_req(#httpd{method='POST',
mochi_req=MochiReq}=Req, AuthModule) ->
Secret = ?l2b(ensure_cookie_auth_secret()),
UserSalt = couch_util:get_value(<<"salt">>, UserProps),
CurrentTime = make_cookie_time(),
- Cookie = cookie_auth_cookie(Req, ?b2l(UserName), <<Secret/binary,
UserSalt/binary>>, CurrentTime),
+ Cookie = case UserSalt =:= undefined of
Review comment:
suggest `case UserSalt of undefined -> ... ; _ ->`.
----------------------------------------------------------------
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