Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit b095d5d

Browse files
authored
feat: integrate alist with casdoor (#50)
* feat: integrate alist with casdoor * fix: casdoor as an option for login Co-authored-by: wenxuan70 <t736660416@gmail.com>
1 parent 35209fa commit b095d5d

File tree

6 files changed

+467
-423
lines changed

6 files changed

+467
-423
lines changed

src/i18n/locales/jp.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const zh = {
1212
"Accounts": "アカウント",
1313
"Meta": "メタ情報",
1414
"login": "ログイン",
15+
"casdoor login": "casdoor ログイン",
1516
"password": "パスワード",
1617
"success": "成功",
1718
"exit": "終了する",
@@ -155,4 +156,4 @@ export default zh
155156
export const config = {
156157
code: 'jp',
157158
text: '日本語',
158-
}
159+
}

src/i18n/locales/zh.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const zh = {
1212
"Accounts": "账号",
1313
"Meta": "元信息",
1414
"login": "登录",
15+
"casdoor login": "casdoor登录",
1516
"password": "密码",
1617
"success": "成功",
1718
"exit": "退出",
@@ -159,4 +160,4 @@ export default zh
159160
export const config = {
160161
code: 'zh',
161162
text: '简体中文',
162-
}
163+
}

src/pages/list/context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const IContextProvider = (props: any) => {
260260
if (!localStorage.getItem("alist_admin-token")) {
261261
return;
262262
}
263-
admin.get("login").then((resp) => {
263+
admin.get("verify").then((resp) => {
264264
if (resp.data.code === 200) {
265265
setLoggedIn(true);
266266
}

0 commit comments

Comments
 (0)