diff options
Diffstat (limited to 'Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs')
| -rw-r--r-- | Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs index f83749f46..6f1aa5dfa 100644 --- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Controllers/HomeController.cs @@ -1,4 +1,5 @@ using Microsoft.AspNetCore.Mvc; +using System.Diagnostics; using System.Text.Json; using Tango.Portal.Chat.Web.ViewModels; @@ -8,6 +9,13 @@ namespace Tango.Portal.Chat.Web.Controllers { public IActionResult Index(String session) { + if (Debugger.IsAttached) + { + HomeViewVM v = new HomeViewVM(); + v.UserName = "debug-user"; + return View(v); + } + String loginUrl = "https://twine-srv.com/login"; if (String.IsNullOrWhiteSpace(session)) return new RedirectResult(loginUrl); |
