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
Unverified
Commit
7693edae
authored
Mar 23, 2026
by
Calcium-Ion
Committed by
GitHub
Mar 23, 2026
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3393 from seefs001/fix/oauth-bind
fix: oauth bind callback handling
parents
d6982c81
f40eb4e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
controller/oauth.go
+3
-1
web/src/components/auth/OAuth2Callback.jsx
+1
-1
No files found.
controller/oauth.go
View file @
7693edae
...
@@ -190,7 +190,9 @@ func handleOAuthBind(c *gin.Context, provider oauth.Provider) {
...
@@ -190,7 +190,9 @@ func handleOAuthBind(c *gin.Context, provider oauth.Provider) {
}
}
}
}
common
.
ApiSuccessI18n
(
c
,
i18n
.
MsgOAuthBindSuccess
,
nil
)
common
.
ApiSuccessI18n
(
c
,
i18n
.
MsgOAuthBindSuccess
,
gin
.
H
{
"action"
:
"bind"
,
})
}
}
// findOrCreateOAuthUser finds existing user or creates new user
// findOrCreateOAuthUser finds existing user or creates new user
...
...
web/src/components/auth/OAuth2Callback.jsx
View file @
7693edae
...
@@ -56,7 +56,7 @@ const OAuth2Callback = (props) => {
...
@@ -56,7 +56,7 @@ const OAuth2Callback = (props) => {
return
;
return
;
}
}
if
(
message
===
'bind'
)
{
if
(
data
?.
action
===
'bind'
)
{
showSuccess
(
t
(
'绑定成功!'
));
showSuccess
(
t
(
'绑定成功!'
));
navigate
(
'/console/personal'
);
navigate
(
'/console/personal'
);
}
else
{
}
else
{
...
...
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