Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
b13e34f8
Commit
b13e34f8
authored
Apr 22, 2026
by
IanShaw027
Browse files
fix(ci): align auth and payment verification tests
parent
6d51834a
Changes
21
Show whitespace changes
Inline
Side-by-side
backend/internal/service/user_service.go
View file @
b13e34f8
...
...
@@ -183,10 +183,6 @@ type UpsertUserAvatarInput struct {
SHA256
string
}
type
userAuthIdentityReader
interface
{
ListUserAuthIdentities
(
ctx
context
.
Context
,
userID
int64
)
([]
UserAuthIdentityRecord
,
error
)
}
type
userProfileIdentityTxRunner
interface
{
WithUserProfileIdentityTx
(
ctx
context
.
Context
,
fn
func
(
txCtx
context
.
Context
)
error
)
error
}
...
...
@@ -812,17 +808,6 @@ func maskOpaqueIdentity(value string) string {
}
}
func
cloneAnyMap
(
values
map
[
string
]
any
)
map
[
string
]
any
{
if
len
(
values
)
==
0
{
return
map
[
string
]
any
{}
}
cloned
:=
make
(
map
[
string
]
any
,
len
(
values
))
for
key
,
value
:=
range
values
{
cloned
[
key
]
=
value
}
return
cloned
}
// ChangePassword 修改密码
// Security: Increments TokenVersion to invalidate all existing JWT tokens
func
(
s
*
UserService
)
ChangePassword
(
ctx
context
.
Context
,
userID
int64
,
req
ChangePasswordRequest
)
error
{
...
...
Prev
1
2
Next
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