Ignore:
Timestamp:
07/07/23 12:14:58 (16 months ago)
Author:
HristijanMitic00 <hristijan.mitic.01@…>
Branches:
main
Parents:
1dd9226
Message:

First commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/project/fmo/app/projcetfmo/Service/impl/AuthServiceImpl.java

    r1dd9226 rd14176d  
    1 package project.fmo.app.projcetfmo.Service.impl;public class AuthServiceImpl {
     1package project.fmo.app.projcetfmo.Service.impl;
     2
     3import org.springframework.stereotype.Service;
     4import project.fmo.app.projcetfmo.Model.Korisnik;
     5import project.fmo.app.projcetfmo.Repository.KorisnikRepository;
     6import project.fmo.app.projcetfmo.Service.AuthService;
     7
     8@Service
     9public 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    }
    221}
Note: See TracChangeset for help on using the changeset viewer.