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
f92d7834
authored
Sep 30, 2025
by
Calcium-Ion
Committed by
GitHub
Sep 30, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1936 from seefs001/fix/passkey
fix: passkey 文案
parents
d826be82
ce1f62b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
setting/system_setting/passkey.go
+3
-0
web/src/components/settings/SystemSetting.jsx
+2
-2
No files found.
setting/system_setting/passkey.go
View file @
f92d7834
...
...
@@ -42,5 +42,8 @@ func GetPasskeySettings() *PasskeySettings {
defaultPasskeySettings
.
RPID
=
serverAddr
}
}
if
defaultPasskeySettings
.
Origins
==
""
||
defaultPasskeySettings
.
Origins
==
"[]"
{
defaultPasskeySettings
.
Origins
=
ServerAddress
}
return
&
defaultPasskeySettings
}
web/src/components/settings/SystemSetting.jsx
View file @
f92d7834
...
...
@@ -1050,7 +1050,7 @@ const SystemSetting = () => {
field=
"['passkey.rp_id']"
label=
{
t
(
'网站域名标识'
)
}
placeholder=
{
t
(
'例如:example.com'
)
}
extraText=
{
t
(
'留空
自动使用当前域名
'
)
}
extraText=
{
t
(
'留空
则默认使用服务器地址,注意不能携带http://或者https://
'
)
}
/>
</
Col
>
</
Row
>
...
...
@@ -1111,7 +1111,7 @@ const SystemSetting = () => {
field=
"['passkey.origins']"
label=
{
t
(
'允许的 Origins'
)
}
placeholder=
{
t
(
'填写带https的域名,逗号分隔'
)
}
extraText=
{
t
(
'
空的话则不限制 Origin,多个 Origin 用逗号分隔
'
)
}
extraText=
{
t
(
'
为空则默认使用服务器地址,多个 Origin 用逗号分隔,例如 https://newapi.pro,https://newapi.com ,注意不能携带[],需使用https
'
)
}
/>
</
Col
>
</
Row
>
...
...
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