diff --git a/csharp/App/Backend/Backend.csproj b/csharp/App/Backend/Backend.csproj
index a63522893..f990e5c8a 100644
--- a/csharp/App/Backend/Backend.csproj
+++ b/csharp/App/Backend/Backend.csproj
@@ -22,21 +22,16 @@
-
-
-
-
-
-
+
PreserveNewest
diff --git a/csharp/App/Backend/Controllers/Controller.cs b/csharp/App/Backend/Controllers/Controller.cs
index d9228f964..1995fbd99 100644
--- a/csharp/App/Backend/Controllers/Controller.cs
+++ b/csharp/App/Backend/Controllers/Controller.cs
@@ -16,7 +16,7 @@ public class Controller : ControllerBase
[HttpPost(nameof(Login))]
public ActionResult Login(String username, String password)
{
- var user = Db.GetUserByEmail(username);
+ var user = Db.GetUserByName(username);
if (user is null || !user.VerifyPassword(password))
return Unauthorized();
@@ -162,14 +162,19 @@ public class Controller : ControllerBase
[HttpGet(nameof(GetAllFoldersAndInstallations))]
- public ActionResult> GetAllFoldersAndInstallations(Token authToken)
+ public ActionResult> GetAllFoldersAndInstallations(Token authToken)
{
var user = Db.GetSession(authToken)?.User;
if (user is null)
return Unauthorized();
+
+ var foldersAndInstallations = user
+ .AccessibleFoldersAndInstallations()
+ .OfType