diff options
author | Vitaly Takmazov | 2019-04-29 16:25:38 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-04-29 16:25:38 +0300 |
commit | f148f16ac82815f65f0b4ff44e1b2184ec0da0b0 (patch) | |
tree | 2c0b90be2036e6513e17a8b8f87c9d89cbeefb66 /src/main/java/com/juick/service/UserService.java | |
parent | 465e5571f8af340a3611290eba01c2b1d9fd22cd (diff) |
Refactoring
Diffstat (limited to 'src/main/java/com/juick/service/UserService.java')
-rw-r--r-- | src/main/java/com/juick/service/UserService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/service/UserService.java b/src/main/java/com/juick/service/UserService.java index 3a51dffb..0d4efcfc 100644 --- a/src/main/java/com/juick/service/UserService.java +++ b/src/main/java/com/juick/service/UserService.java @@ -40,7 +40,7 @@ public interface UserService { String getSignUpHashByTelegramID(Long telegramId, String username); - int createUser(String username, String password); + Optional<User> createUser(String username, String password); Optional<User> getUserByUID(int uid); @@ -66,7 +66,7 @@ public interface UserService { String getHashByUID(int uid); - int checkPassword(String username, String password); + Optional<User> checkPassword(String username, String password); boolean updatePassword(User user, String newPassword); |