source: src/main/java/com/example/villadihovo/service/impl/usersImpl/UserServiceImpl.java

Last change on this file was f7c05a1, checked in by Elena Shulevska <elena.shulevska@…>, 15 months ago

initial commit of the source code on origin

  • Property mode set to 100644
File size: 668 bytes
Line 
1package com.example.villadihovo.service.impl.usersImpl;
2
3import com.example.villadihovo.model.users.UserTable;
4import com.example.villadihovo.repository.users.UserRepository;
5import com.example.villadihovo.service.users.UserService;
6import lombok.AllArgsConstructor;
7import org.springframework.stereotype.Service;
8
9import java.util.Optional;
10@AllArgsConstructor
11@Service
12public class UserServiceImpl implements UserService {
13
14
15 private final UserRepository userRepository;
16
17 @Override
18 public Optional<UserTable> findByUsernameAndPassword(String username, String password) {
19 return userRepository.findByUsernameAndPassword(username,password);
20 }
21}
Note: See TracBrowser for help on using the repository browser.