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

Commit

Permalink
feat: integrate alist with casdoor (#50)
Browse files Browse the repository at this point in the history
* feat: integrate alist with casdoor

* fix: casdoor as an option for login

Co-authored-by: wenxuan70 <[email protected]>
  • Loading branch information
wenxuan70 and wenxuan70 authored Aug 10, 2022
1 parent 35209fa commit b095d5d
Show file tree
Hide file tree
Showing 6 changed files with 467 additions and 423 deletions.
3 changes: 2 additions & 1 deletion src/i18n/locales/jp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const zh = {
"Accounts": "アカウント",
"Meta": "メタ情報",
"login": "ログイン",
"casdoor login": "casdoor ログイン",
"password": "パスワード",
"success": "成功",
"exit": "終了する",
Expand Down Expand Up @@ -155,4 +156,4 @@ export default zh
export const config = {
code: 'jp',
text: '日本語',
}
}
3 changes: 2 additions & 1 deletion src/i18n/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const zh = {
"Accounts": "账号",
"Meta": "元信息",
"login": "登录",
"casdoor login": "casdoor登录",
"password": "密码",
"success": "成功",
"exit": "退出",
Expand Down Expand Up @@ -159,4 +160,4 @@ export default zh
export const config = {
code: 'zh',
text: '简体中文',
}
}
2 changes: 1 addition & 1 deletion src/pages/list/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const IContextProvider = (props: any) => {
if (!localStorage.getItem("alist_admin-token")) {
return;
}
admin.get("login").then((resp) => {
admin.get("verify").then((resp) => {
if (resp.data.code === 200) {
setLoggedIn(true);
}
Expand Down
Loading

0 comments on commit b095d5d

Please sign in to comment.