Browse Source

add 验证码

tags/V2.2.0
chenjiandong 2 years ago
parent
commit
57915a2401
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      tuoheng_oidc_server/src/main/java/com/tuoheng/controller/Oauth2Controller.java

+ 3
- 2
tuoheng_oidc_server/src/main/java/com/tuoheng/controller/Oauth2Controller.java View File

@@ -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();
}

Loading…
Cancel
Save