From c2246a254e158007a90919f95c86e439ea050daa Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 29 Nov 2017 11:45:07 +0100 Subject: [PATCH] It works better if you do it right --- Site/Security/Login.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Site/Security/Login.aspx.cs b/Site/Security/Login.aspx.cs index 06ad8240..2ba141e5 100644 --- a/Site/Security/Login.aspx.cs +++ b/Site/Security/Login.aspx.cs @@ -84,7 +84,7 @@ namespace Swarmops.Pages.Security { DashboardMessage.Set ("

You have been logged on as Sandbox Administrator to the Swarmops Development Sandbox.


This machine runs the latest development build, so you may run into diagnostic code and half-finished features. All data here is bogus test data and is reset every night.


In other words, welcome, and play away!

"); FormsAuthentication.SetAuthCookie (Authority.FromLogin (Person.FromIdentity (1), Organization.Sandbox).ToEncryptedXml(), true); - Response.Redirect (HttpContext.Current.Request.Path); // Forces a reload of the same URL with auth cookie set + Response.Redirect (HttpContext.Current.Request ["ReturnUrl"]); // Returns to the requested URL with auth cookie set } // If we're on an Open Ledgers domain, autologin as Open Ledgers