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
ce1f62b2
authored
Sep 30, 2025
by
Seefs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: passkey 文案
parent
75ee6321
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 @
ce1f62b2
...
@@ -42,5 +42,8 @@ func GetPasskeySettings() *PasskeySettings {
...
@@ -42,5 +42,8 @@ func GetPasskeySettings() *PasskeySettings {
defaultPasskeySettings
.
RPID
=
serverAddr
defaultPasskeySettings
.
RPID
=
serverAddr
}
}
}
}
if
defaultPasskeySettings
.
Origins
==
""
||
defaultPasskeySettings
.
Origins
==
"[]"
{
defaultPasskeySettings
.
Origins
=
ServerAddress
}
return
&
defaultPasskeySettings
return
&
defaultPasskeySettings
}
}
web/src/components/settings/SystemSetting.jsx
View file @
ce1f62b2
...
@@ -1050,7 +1050,7 @@ const SystemSetting = () => {
...
@@ -1050,7 +1050,7 @@ const SystemSetting = () => {
field=
"['passkey.rp_id']"
field=
"['passkey.rp_id']"
label=
{
t
(
'网站域名标识'
)
}
label=
{
t
(
'网站域名标识'
)
}
placeholder=
{
t
(
'例如:example.com'
)
}
placeholder=
{
t
(
'例如:example.com'
)
}
extraText=
{
t
(
'留空
自动使用当前域名
'
)
}
extraText=
{
t
(
'留空
则默认使用服务器地址,注意不能携带http://或者https://
'
)
}
/>
/>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
@@ -1111,7 +1111,7 @@ const SystemSetting = () => {
...
@@ -1111,7 +1111,7 @@ const SystemSetting = () => {
field=
"['passkey.origins']"
field=
"['passkey.origins']"
label=
{
t
(
'允许的 Origins'
)
}
label=
{
t
(
'允许的 Origins'
)
}
placeholder=
{
t
(
'填写带https的域名,逗号分隔'
)
}
placeholder=
{
t
(
'填写带https的域名,逗号分隔'
)
}
extraText=
{
t
(
'
空的话则不限制 Origin,多个 Origin 用逗号分隔
'
)
}
extraText=
{
t
(
'
为空则默认使用服务器地址,多个 Origin 用逗号分隔,例如 https://newapi.pro,https://newapi.com ,注意不能携带[],需使用https
'
)
}
/>
/>
</
Col
>
</
Col
>
</
Row
>
</
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