main
Last change
on this file was d14176d, checked in by HristijanMitic00 <hristijan.mitic.01@…>, 12 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
693 bytes
|
Line | |
---|
1 | package project.fmo.app.projcetfmo.Service.impl;
|
---|
2 |
|
---|
3 | import org.springframework.stereotype.Service;
|
---|
4 | import project.fmo.app.projcetfmo.Model.Korisnik;
|
---|
5 | import project.fmo.app.projcetfmo.Repository.KorisnikRepository;
|
---|
6 | import project.fmo.app.projcetfmo.Service.AuthService;
|
---|
7 |
|
---|
8 | @Service
|
---|
9 | public class AuthServiceImpl implements AuthService {
|
---|
10 |
|
---|
11 | private final KorisnikRepository korisnikRepository;
|
---|
12 |
|
---|
13 | public AuthServiceImpl(KorisnikRepository korisnikRepository) {
|
---|
14 | this.korisnikRepository = korisnikRepository;
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public Korisnik login(String username, String password) {
|
---|
19 | return korisnikRepository.findByImePrezimeAndPasswordKorisnik(username,password);
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.