Skip to content

Commit 846f3e0

Browse files
authored
[Improvement] change token key name (#3865)
Signed-off-by: Zzm0809 <934230207@qq.com>
1 parent 114cc18 commit 846f3e0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dinky-admin/src/main/java/org/dinky/interceptor/TenantInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public boolean preHandle(HttpServletRequest request, @NotNull HttpServletRespons
5959
if (Asserts.isNotNull(cookies)) {
6060
for (Cookie cookie : cookies) {
6161
switch (cookie.getName()) {
62-
case "token":
62+
case "dinky-token":
6363
token = Opt.ofBlankAble(cookie.getValue());
6464
SaTokenDao saTokenDao = SaManager.getSaTokenDao();
6565
String keyTokenValue = StpUtil.getStpLogic().splicingKeyTokenValue(token.get());

dinky-admin/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ sa-token:
145145
is-write-header: true
146146
# is read header
147147
is-read-header: true
148-
token-name: token
148+
token-name: dinky-token
149149
is-read-cookie: true
150150

151151
---

dinky-web/src/services/constants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const LANGUAGE_EN = 'en-US';
3535

3636
export const SERVER_VERSION = 'dinky_server_version';
3737

38-
export const TOKEN_KEY = 'token';
38+
export const TOKEN_KEY = 'dinky-token';
3939

4040
export const DATE_FORMAT = 'YYYY-MM-DD';
4141
export const DATETIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';

0 commit comments

Comments
 (0)