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 | |
---|
1 | package com.example.villadihovo.service.impl.usersImpl;
|
---|
2 |
|
---|
3 | import com.example.villadihovo.model.users.UserTable;
|
---|
4 | import com.example.villadihovo.repository.users.UserRepository;
|
---|
5 | import com.example.villadihovo.service.users.UserService;
|
---|
6 | import lombok.AllArgsConstructor;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | import java.util.Optional;
|
---|
10 | @AllArgsConstructor
|
---|
11 | @Service
|
---|
12 | public 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.