This commit is contained in:
@@ -181,7 +181,7 @@ public class AuthService {
|
||||
}
|
||||
|
||||
public AuthToken getAuthToken(String token) {
|
||||
return authTokenRepository.findByToken(token).get();
|
||||
return authTokenRepository.findByToken(token).orElse(null);
|
||||
}
|
||||
|
||||
private AuthToken genereateAuthToken(User user) {
|
||||
|
||||
Reference in New Issue
Block a user