aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/UserService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service/UserService.java')
-rw-r--r--src/main/java/com/juick/service/UserService.java4
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);