diff --git a/src/ComputerLock/Components/ResetPassword.razor.cs b/src/ComputerLock/Components/ResetPassword.razor.cs
index 8485724..5c8ad3f 100644
--- a/src/ComputerLock/Components/ResetPassword.razor.cs
+++ b/src/ComputerLock/Components/ResetPassword.razor.cs
@@ -1,7 +1,7 @@
using DialogResult = MudBlazor.DialogResult;
namespace ComputerLock.Components;
-public partial class SetPassword
+public partial class ResetPassword
{
[CascadingParameter]
private MudDialogInstance MudDialog { get; set; } = default!;
diff --git a/src/ComputerLock/Pages/Index.razor b/src/ComputerLock/Pages/Index.razor
index b552573..341f0e9 100644
--- a/src/ComputerLock/Pages/Index.razor
+++ b/src/ComputerLock/Pages/Index.razor
@@ -116,8 +116,8 @@
- @(Lang["SetPassword"])
+ OnClick="ResetPassword">
+ @(Lang["ResetPassword"])
\ No newline at end of file
diff --git a/src/ComputerLock/Pages/Index.razor.cs b/src/ComputerLock/Pages/Index.razor.cs
index 8f0e617..6308c36 100644
--- a/src/ComputerLock/Pages/Index.razor.cs
+++ b/src/ComputerLock/Pages/Index.razor.cs
@@ -231,7 +231,7 @@ public void UnregisterHotKey()
_shortcutKeyText = Lang["Invalid"];
}
- private async Task SetPassword()
+ private async Task ResetPassword()
{
var noHeader = new DialogOptions()
{
@@ -239,7 +239,7 @@ private async Task SetPassword()
CloseOnEscapeKey = false,
CloseButton = true
};
- var dialog = await Dialog.ShowAsync(Lang["SetPassword"], noHeader);
+ var dialog = await Dialog.ShowAsync(Lang["ResetPassword"], noHeader);
var result = await dialog.Result;
if (result.Canceled)
{
diff --git a/src/ComputerLock/Resources/Lang.Designer.cs b/src/ComputerLock/Resources/Lang.Designer.cs
index 202868d..dbd4a56 100644
--- a/src/ComputerLock/Resources/Lang.Designer.cs
+++ b/src/ComputerLock/Resources/Lang.Designer.cs
@@ -537,6 +537,15 @@ public static string RemoveLogsOk {
}
}
+ ///
+ /// 查找类似 的本地化字符串。
+ ///
+ public static string ResetPassword {
+ get {
+ return ResourceManager.GetString("ResetPassword", resourceCulture);
+ }
+ }
+
///
/// 查找类似 的本地化字符串。
///
@@ -591,15 +600,6 @@ public static string SaveOk {
}
}
- ///
- /// 查找类似 的本地化字符串。
- ///
- public static string SetPassword {
- get {
- return ResourceManager.GetString("SetPassword", resourceCulture);
- }
- }
-
///
/// 查找类似 的本地化字符串。
///
diff --git a/src/ComputerLock/Resources/Lang.en.resx b/src/ComputerLock/Resources/Lang.en.resx
index bc77037..c27701e 100644
--- a/src/ComputerLock/Resources/Lang.en.resx
+++ b/src/ComputerLock/Resources/Lang.en.resx
@@ -195,8 +195,8 @@
Default password is 1
-
- Set password
+
+ Reset password
Current Password
diff --git a/src/ComputerLock/Resources/Lang.resx b/src/ComputerLock/Resources/Lang.resx
index 2ea5deb..33334d3 100644
--- a/src/ComputerLock/Resources/Lang.resx
+++ b/src/ComputerLock/Resources/Lang.resx
@@ -175,7 +175,7 @@
-
+
diff --git a/src/ComputerLock/Resources/Lang.zh.resx b/src/ComputerLock/Resources/Lang.zh.resx
index 55246e1..444ba3c 100644
--- a/src/ComputerLock/Resources/Lang.zh.resx
+++ b/src/ComputerLock/Resources/Lang.zh.resx
@@ -195,8 +195,8 @@
初始密码为1
-
- 设置密码
+
+ 修改密码
当前密码