arreglo error de suspended en log in

This commit is contained in:
Paola 2021-07-23 15:59:49 -06:00
parent 0bd50e331c
commit a03c351578
3 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public interface UserRepository extends JpaRepository<User, Long> {
Optional<User> findOneByLogin(String login);
@EntityGraph(attributePaths = "authorities")
@Cacheable(cacheNames = USERS_BY_LOGIN_CACHE)
//@Cacheable(cacheNames = USERS_BY_LOGIN_CACHE)
Optional<User> findOneWithAuthoritiesByLogin(String login);
@EntityGraph(attributePaths = "authorities")

View File

@ -399,6 +399,7 @@ public class UserService {
@Transactional(readOnly = true)
public Optional<User> getUserWithAuthorities() {
return SecurityUtils.getCurrentUserLogin().flatMap(userRepository::findOneWithAuthoritiesByLogin);
//findOneWithAuthoritiesByLogin
}
/**

View File

@ -81,7 +81,7 @@ export class LoginComponent implements OnInit, AfterViewInit {
}
authenticacionGoogle(): void {
this.loginService.login({ username: this.user.email, password: this.user.id, rememberMe: true }).subscribe(
this.loginService.login({ username: this.user.email, password: this.user.id, rememberMe: false }).subscribe(
() => {
this.authenticationError = false;
if (!this.router.getCurrentNavigation()) {