Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit e26907f

Browse files
committed
Add security details to handle lookup
1 parent 6ee4f19 commit e26907f

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/com/appirio/tech/core/service/identity/dao

1 file changed

+2
-1
lines changed

src/main/java/com/appirio/tech/core/service/identity/dao/UserDAO.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ public abstract class UserDAO implements DaoBase<User>, Transactional<UserDAO> {
105105

106106
@RegisterMapperFactory(TCBeanMapperFactory.class)
107107
@SqlQuery("SELECT " + USER_COLUMNS + ", " +
108-
"e.address AS email, e.status_id AS emailStatus " +
108+
"s.password AS credential$encodedPassword, e.address AS email, e.status_id AS emailStatus " +
109109
"FROM common_oltp.user AS u " +
110110
"LEFT OUTER JOIN common_oltp.email AS e ON u.user_id = e.user_id AND e.email_type_id = 1 " +
111+
"LEFT OUTER JOIN common_oltp.security_user AS s ON u.user_id = s.login_id " +
111112
"WHERE u.handle_lower = LOWER(:handle)")
112113
public abstract User findUserByHandle(@Bind("handle") String handle);
113114

0 commit comments

Comments
 (0)