Skip to content

Commit

Permalink
change-token-key-name
Browse files Browse the repository at this point in the history
Signed-off-by: Zzm0809 <[email protected]>
  • Loading branch information
Zzm0809 committed Oct 10, 2024
1 parent e5ca76f commit e8fa148
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public boolean preHandle(HttpServletRequest request, @NotNull HttpServletRespons
if (Asserts.isNotNull(cookies)) {
for (Cookie cookie : cookies) {
switch (cookie.getName()) {
case "token":
case "dinky-token":
token = Opt.ofBlankAble(cookie.getValue());
SaTokenDao saTokenDao = SaManager.getSaTokenDao();
String keyTokenValue = StpUtil.getStpLogic().splicingKeyTokenValue(token.get());
Expand Down
2 changes: 1 addition & 1 deletion dinky-admin/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ sa-token:
is-write-header: true
# is read header
is-read-header: true
token-name: token
token-name: dinky-token
is-read-cookie: true

---
Expand Down
2 changes: 1 addition & 1 deletion dinky-web/src/services/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const LANGUAGE_EN = 'en-US';

export const SERVER_VERSION = 'dinky_server_version';

export const TOKEN_KEY = 'token';
export const TOKEN_KEY = 'dinky-token';

export const DATE_FORMAT = 'YYYY-MM-DD';
export const DATETIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';
Expand Down

0 comments on commit e8fa148

Please sign in to comment.