aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-06-20 16:26:16 +0300
committerGravatar Vitaly Takmazov2017-06-20 16:27:23 +0300
commita87b218082b7ed383ee57e26e89bc2d0283299f5 (patch)
tree818f01ebfcd717de8b5b8f5b3311879b224669c3 /juick-server/src/main/java/com/juick/service/UserServiceImpl.java
parent5dfc4a2158757d9e882751e22f1456567423f77a (diff)
drop secret mail feature
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/UserServiceImpl.java')
-rw-r--r--juick-server/src/main/java/com/juick/service/UserServiceImpl.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/juick-server/src/main/java/com/juick/service/UserServiceImpl.java b/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
index 1fc72525..1b7cee42 100644
--- a/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/UserServiceImpl.java
@@ -362,20 +362,6 @@ public class UserServiceImpl extends BaseJdbcService implements UserService {
getJdbcTemplate().update("UPDATE users SET passw = ? WHERE id = ?", newPassword, user.getUid()) > 0;
}
- @Transactional
- @Override
- public String updateSecretEmail(final User user) {
- if (user != null) {
- String newHash = UserUtils.generateHash(16);
- int ret = getJdbcTemplate().update(
- "INSERT INTO mail(user_id, hash) VALUES (?, ?) ON DUPLICATE KEY UPDATE hash = ?",
- user.getUid(), newHash, newHash);
- if (ret > 0)
- return newHash;
- }
- return StringUtils.EMPTY;
- }
-
@Transactional(readOnly = true)
@Override
public int getUserOptionInt(final int uid, final String option, final int defaultValue) {