Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
30d9f433
authored
Mar 11, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: Update OIDC status check to use oidc_enabled flag
parent
3ede51a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
web/src/components/LoginForm.js
+2
-2
web/src/components/PersonalSetting.js
+2
-2
web/src/components/RegisterForm.js
+2
-2
No files found.
web/src/components/LoginForm.js
View file @
30d9f433
...
@@ -230,7 +230,7 @@ const LoginForm = () => {
...
@@ -230,7 +230,7 @@ const LoginForm = () => {
<
/Text
>
<
/Text
>
<
/div
>
<
/div
>
{
status
.
github_oauth
||
{
status
.
github_oauth
||
status
.
oidc
||
status
.
oidc
_enabled
||
status
.
wechat_login
||
status
.
wechat_login
||
status
.
telegram_oauth
||
status
.
telegram_oauth
||
status
.
linuxdo_oauth
?
(
status
.
linuxdo_oauth
?
(
...
@@ -256,7 +256,7 @@ const LoginForm = () => {
...
@@ -256,7 +256,7 @@ const LoginForm = () => {
)
:
(
)
:
(
<><
/
>
<><
/
>
)}
)}
{
status
.
oidc
?
(
{
status
.
oidc
_enabled
?
(
<
Button
<
Button
type
=
'primary'
type
=
'primary'
icon
=
{
<
OIDCIcon
/>
}
icon
=
{
<
OIDCIcon
/>
}
...
...
web/src/components/PersonalSetting.js
View file @
30d9f433
...
@@ -662,10 +662,10 @@ const PersonalSetting = () => {
...
@@ -662,10 +662,10 @@ const PersonalSetting = () => {
}}
}}
disabled
=
{
disabled
=
{
(
userState
.
user
&&
userState
.
user
.
oidc_id
!==
''
)
||
(
userState
.
user
&&
userState
.
user
.
oidc_id
!==
''
)
||
!
status
.
oidc
!
status
.
oidc
_enabled
}
}
>
>
{
status
.
oidc
?
t
(
'绑定'
)
:
t
(
'未启用'
)}
{
status
.
oidc
_enabled
?
t
(
'绑定'
)
:
t
(
'未启用'
)}
<
/Button
>
<
/Button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
web/src/components/RegisterForm.js
View file @
30d9f433
...
@@ -263,7 +263,7 @@ const RegisterForm = () => {
...
@@ -263,7 +263,7 @@ const RegisterForm = () => {
<
/Text
>
<
/Text
>
<
/div
>
<
/div
>
{
status
.
github_oauth
||
{
status
.
github_oauth
||
status
.
oidc
||
status
.
oidc
_enabled
||
status
.
wechat_login
||
status
.
wechat_login
||
status
.
telegram_oauth
||
status
.
telegram_oauth
||
status
.
linuxdo_oauth
?
(
status
.
linuxdo_oauth
?
(
...
@@ -289,7 +289,7 @@ const RegisterForm = () => {
...
@@ -289,7 +289,7 @@ const RegisterForm = () => {
)
:
(
)
:
(
<><
/
>
<><
/
>
)}
)}
{
status
.
oidc
?
(
{
status
.
oidc
_enabled
?
(
<
Button
<
Button
type
=
'primary'
type
=
'primary'
icon
=
{
<
OIDCIcon
/>
}
icon
=
{
<
OIDCIcon
/>
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment