|
|
@@ -1,6 +1,7 @@ |
|
|
|
package com.tuoheng.controller; |
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.security.authentication.jaas.SecurityContextLoginModule; |
|
|
|
import org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.ui.Model; |
|
|
@@ -47,8 +48,8 @@ public class Oauth2Controller { |
|
|
|
new SecurityContextLogoutHandler().logout(request, null, null); |
|
|
|
try { |
|
|
|
System.out.println(request.getHeader("referer")); |
|
|
|
//response.sendRedirect(request.getHeader("referer")); |
|
|
|
response.sendRedirect("http://192.168.13.140:3000/home"); |
|
|
|
response.sendRedirect(request.getHeader("referer")); |
|
|
|
//response.sendRedirect("http://192.168.13.140:3000/home"); |
|
|
|
} catch (IOException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |