feat: add login
This commit is contained in:
0
db/create_users.db
Normal file
0
db/create_users.db
Normal 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());
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user