mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 05:39:00 +08:00
⚡ 优化 closed #3124 登录用户支持多表储存,最后一步出现错误
This commit is contained in:
1 parent
b84b20bfcc
commit
7ae777a825
2 files changed
+7
-1
No files matched your search
@@ -17,7 +17,7 @@
|
||||
<body class="sign_body">
|
||||
<div class="container form-margin-top">
|
||||
<form class="form-signin" action="/token/form" method="post">
|
||||
<h2 class="form-signin-heading" align="center">统一认证系统</h2>
|
||||
<h2 class="form-signin-hea ding" align="center">统一认证系统</h2>
|
||||
|
||||
<#if tenantList??>
|
||||
<select class="form-control form-margin-top" placeholder="所属租户" name="TENANT-ID">
|
||||
@@ -27,6 +27,7 @@
|
||||
</select>
|
||||
</#if>
|
||||
|
||||
<input type="hidden" name="clientId" class="form-control" value="pig" placeholder="所属客户端" >
|
||||
<input type="text" name="username" class="form-control" placeholder="账号" required autofocus>
|
||||
<input type="password" name="password" class="form-control" placeholder="密码" required>
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">sign in</button>
|
||||
|
||||
+5
@@ -46,6 +46,11 @@ public class AuthenticationLogoutSuccessEventListener implements ApplicationList
|
||||
*/
|
||||
@Override
|
||||
public void onApplicationEvent(LogoutSuccessEvent event) {
|
||||
// 健壮性判断
|
||||
if (!(event.getSource() instanceof OAuth2Authentication)) {
|
||||
return;
|
||||
}
|
||||
|
||||
OAuth2Authentication authentication = (OAuth2Authentication) event.getSource();
|
||||
if (logoutHandler != null && isUserAuthentication(authentication)) {
|
||||
ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder
|
||||
|
||||
Reference in new issue
Block a user