ottoka commented on a change in pull request #753:
URL: https://github.com/apache/james-project/pull/753#discussion_r752099441
##########
File path:
server/data/data-library/src/main/java/org/apache/james/user/lib/model/DefaultUser.java
##########
@@ -76,7 +76,8 @@ public Username getUserName() {
@Override
public boolean verifyPassword(String pass) {
try {
- String hashGuess = DigestUtil.digestString(pass, algorithm);
+ String credentials = algorithm.isSalted() ? userName.asString() +
pass : pass;
Review comment:
Sorry, old C hacker here. Do you prefer a more explicit if/then/else? Or
is it OK to leave it this way?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]