Skip to content

Commit 581cfc6

Browse files
authored
Merge pull request #140 from OHDSI/ARACHYE-code-should-be-encoded
the code should be encoded from configuration
2 parents 2d9c48b + 81aa30a commit 581cfc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datanode/src/main/java/com/odysseusinc/arachne/datanode/auth/basic/DbBasicCredentialsService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private CredentialsEntity create(String password, User user) {
112112
entity.setUser(user);
113113
entity.setTimestamp(clock.instant());
114114
entity.setType(CredentialsEntity.Type.BASIC);
115-
entity.setData(password);
115+
entity.setData(passwordEncoder.encode(password));
116116
});
117117
em.persist(credentials);
118118
return credentials;

0 commit comments

Comments
 (0)