feat: add login

This commit is contained in:
GukSang.Jin
2026-01-26 19:26:48 +08:00
3 changed files with 35 additions and 8 deletions

0
db/create_users.db Normal file
View File

View File

@@ -148,12 +148,12 @@ WHERE username = 'admin'; -- 修改为对应的用户名";
MessageBoxButtons.OK, MessageBoxIcon.Information);
}
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new PasswordGenerator());
}
//[STAThread]
//static void Main()
//{
// Application.EnableVisualStyles();
// Application.SetCompatibleTextRenderingDefault(false);
// Application.Run(new PasswordGenerator());
//}
}
}

View File

@@ -138,10 +138,37 @@
<Compile Include="DATA\LoginData.cs" />
<Compile Include="DATA\LoginDebugHelper.cs" />
<Compile Include="DATA\ModbusResourceManager.cs" />
<Compile Include="DATA\PLC_Data.cs" />
<Compile Include="DATA\PasswordGenerator.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="DATA\PasswordHelper.cs" />
<Compile Include="DATA\PLC_Data.cs" />
<Compile Include="DATA\User.cs" />
<Compile Include="DATA\UserRepository.cs" />
<Compile Include="Forms\ChangePasswordForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\ChangePasswordForm.Designer.cs">
<DependentUpon>ChangePasswordForm.cs</DependentUpon>
</Compile>
<Compile Include="Forms\LoginForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\LoginForm.Designer.cs">
<DependentUpon>LoginForm.cs</DependentUpon>
</Compile>
<Compile Include="Forms\UserEditForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\UserEditForm.Designer.cs">
<DependentUpon>UserEditForm.cs</DependentUpon>
</Compile>
<Compile Include="Forms\UserManagerForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\UserManagerForm.Designer.cs">
<DependentUpon>UserManagerForm.cs</DependentUpon>
</Compile>
<Compile Include="ScanImport.cs">
<SubType>Form</SubType>
</Compile>