cleaned solution
This commit is contained in:
parent
20cbf225ff
commit
97cc4369bd
@ -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>
|
||||||
|
|||||||
@ -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******");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user