Commit 89734a26494590ae4f402687a3329341b7ca6e18
1 parent
661aeeaa
注入注销地址
Showing
1 changed file
with
7 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/controller/UsersController.java
| ... | ... | @@ -49,6 +49,12 @@ public class UsersController extends BaseController { |
| 49 | 49 | private String SERVICE_LOGIN; |
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | + * 注销 | |
| 53 | + */ | |
| 54 | + @Value("${SERVICE_LOGINOUT}") | |
| 55 | + private String SERVICE_LOGINOUT; | |
| 56 | + | |
| 57 | + /** | |
| 52 | 58 | * 本机的名称 |
| 53 | 59 | */ |
| 54 | 60 | @Value("${spring.localhost.url}") |
| ... | ... | @@ -89,7 +95,7 @@ public class UsersController extends BaseController { |
| 89 | 95 | @RequestMapping("/logout") |
| 90 | 96 | public String logout(HttpSession session) { |
| 91 | 97 | session.invalidate(); |
| 92 | - return "redirect:https://user.cnlive.com/OpenSSO2/logout?service=" + SERVICE_LOGIN; | |
| 98 | + return "redirect:https://user.cnlive.com/OpenSSO2/logout?service=" + SERVICE_LOGINOUT; | |
| 93 | 99 | } |
| 94 | 100 | |
| 95 | 101 | ... | ... |