package es.uniovi.asw.service;

import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import es.uniovi.asw.repository.UserRepository;
import es.uniovi.asw.model.UserInfo;

@Service
@Transactional
public class UserService {
	
	@Autowired
	private UserRepository userRepository;

	public UserService() {

	}

	public boolean validar(UserInfo user) {
          UserInfo u = this.userRepository.findByEmail(user.getEmail());
          
          if (u == null) {
	      return false;
           }
           
        return false;
     }

}

@@ -612,32 +612,138 @@
 %7D%0D%0A           %0D%0A
+          if (u.getPassword().equals(user.getPassword())) %7B%0D%0A              return true;%0D%0A%09%7D%0D%0A           %0D%0A
         return f

Update UserService