cleaned solution

This commit is contained in:
Im_Alpha 2021-12-14 13:33:23 -08:00
parent 20cbf225ff
commit 97cc4369bd
2 changed files with 8 additions and 2 deletions

View File

@ -20,4 +20,9 @@
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\TeamHobby.HobbyProjectGenerator.DataAccess\TeamHobby.HobbyProjectGenerator.DataAccess.csproj" />
<ProjectReference Include="..\..\TeamHobby.HobbyProjectGenerator.UserManagement\TeamHobby.HobbyProjectGenerator.UserManagement.csproj" />
</ItemGroup>
</Project> </Project>

View File

@ -82,15 +82,16 @@ namespace TeamHobby.HobbyProjectGenerator.Main
// Create UserAccount class // Create UserAccount class
UserAccount user = new UserAccount(username, password, TimeStamp); UserAccount user = new UserAccount(username, password, TimeStamp);
// Call user object and wait for return string
string isLogin = manager.CreateUserRecord(user, datasource); string isLogin = manager.CreateUserRecord(user, datasource);
// If login is not incorrect and user is returning to login menu
if (isLogin != "Access Denied: Unauthorized\n") if (isLogin != "Access Denied: Unauthorized\n")
{ {
Console.WriteLine("Returning to login...\n"); Console.WriteLine("Returning to login...\n");
Console.WriteLine("-------------------------------------\n"); Console.WriteLine("-------------------------------------\n");
} }
// If login is incorrect
else else
{ {
Console.WriteLine("******Access Denied: Unauthorized******"); Console.WriteLine("******Access Denied: Unauthorized******");