File tree Expand file tree Collapse file tree
java/me/zhengjie/modules/security/security
resources/template/generator/front Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public class TokenProvider implements InitializingBean {
4343
4444 private final SecurityProperties properties ;
4545 private final RedisUtils redisUtils ;
46- public static final String AUTHORITIES_KEY = "auth " ;
46+ public static final String AUTHORITIES_KEY = "user " ;
4747 private JwtParser jwtParser ;
4848 private JwtBuilder jwtBuilder ;
4949
@@ -74,6 +74,7 @@ public String createToken(Authentication authentication) {
7474 return jwtBuilder
7575 // 加入ID确保生成的 Token 都不一致
7676 .setId (IdUtil .simpleUUID ())
77+ .claim (AUTHORITIES_KEY , authentication .getName ())
7778 .setSubject (authentication .getName ())
7879 .compact ();
7980 }
Original file line number Diff line number Diff line change 7070 </el-form >
7171 <div slot =" footer" class =" dialog-footer" >
7272 <el-button type =" text" @click =" crud.cancelCU" >取消</el-button >
73- <el-button :loading =" crud.cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
73+ <el-button :loading =" crud.status. cu === 2" type =" primary" @click =" crud.submitCU" >确认</el-button >
7474 </div >
7575 </el-dialog >
7676 <!-- 表格渲染-->
You can’t perform that action at this time.
0 commit comments