arreglo error de suspended en log in
This commit is contained in:
parent
0bd50e331c
commit
a03c351578
|
@ -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")
|
||||
|
|
|
@ -399,6 +399,7 @@ public class UserService {
|
|||
@Transactional(readOnly = true)
|
||||
public Optional<User> getUserWithAuthorities() {
|
||||
return SecurityUtils.getCurrentUserLogin().flatMap(userRepository::findOneWithAuthoritiesByLogin);
|
||||
//findOneWithAuthoritiesByLogin
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue