From 1d51d32bc8b3c3b7783db9fab79dcb8fece02e3f Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 27 Feb 2023 16:15:38 +0100 Subject: [PATCH] Rename debug user --- README.md | 6 +++--- trainav.web/Utils/AuthUtil.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a523a22..c09bad1 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Trainav ## DISCLAIMER -- This app uses the `Remote-User` header for authentication. For production use an auth proxy like Authelia is required. In development mode the user is set to `zotan` by default. This can be changed in `AuthUtil.cs`. +- This app uses the `Remote-User` header for authentication. For production use an auth proxy like Authelia is required. In development mode the user is set to `debuguser` by default. This can be changed in `AuthUtil.cs`. ## Development / testing requirements -- .NET Core SDK (version 6.0 or higher; arch package `dotnet-sdk`) -- ASP.NET Core Runtime (version 6.0 or higher; arch package `aspnet-runtime`) +- .NET Core SDK (version 7.0 or higher; arch package `dotnet-sdk`) +- ASP.NET Core Runtime (version 7.0 or higher; arch package `aspnet-runtime`) - `cd trainav.web` - `dotnet run` diff --git a/trainav.web/Utils/AuthUtil.cs b/trainav.web/Utils/AuthUtil.cs index 4ba29fb..aa3e25c 100644 --- a/trainav.web/Utils/AuthUtil.cs +++ b/trainav.web/Utils/AuthUtil.cs @@ -9,7 +9,7 @@ namespace trainav.web.Utils; public static class AuthUtil { public static string GetRemoteUser(HttpContext ctx, Database.DbConn db) { #if (DEBUG) - const string remoteUser = "zotan"; + const string remoteUser = "debuguser"; #else var remoteUser = ctx.Request.Headers["Remote-User"]; #endif