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);
|
MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
}
|
}
|
||||||
|
|
||||||
[STAThread]
|
//[STAThread]
|
||||||
static void Main()
|
//static void Main()
|
||||||
{
|
//{
|
||||||
Application.EnableVisualStyles();
|
// Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
// Application.SetCompatibleTextRenderingDefault(false);
|
||||||
Application.Run(new PasswordGenerator());
|
// Application.Run(new PasswordGenerator());
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -138,10 +138,37 @@
|
|||||||
<Compile Include="DATA\LoginData.cs" />
|
<Compile Include="DATA\LoginData.cs" />
|
||||||
<Compile Include="DATA\LoginDebugHelper.cs" />
|
<Compile Include="DATA\LoginDebugHelper.cs" />
|
||||||
<Compile Include="DATA\ModbusResourceManager.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\PasswordHelper.cs" />
|
||||||
|
<Compile Include="DATA\PLC_Data.cs" />
|
||||||
<Compile Include="DATA\User.cs" />
|
<Compile Include="DATA\User.cs" />
|
||||||
<Compile Include="DATA\UserRepository.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">
|
<Compile Include="ScanImport.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|||||||
Reference in New Issue
Block a user