More validation debugging

This commit is contained in:
Falkvinge
2016-11-20 19:05:07 +01:00
parent ca9d846be0
commit 1c1c759ee8
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -398,7 +398,7 @@ namespace Swarmops.Frontend.Automation
// We can only verify password for personId zero (the self)
if (personId != 0)
if (personId != 0 && personId != authData.CurrentUser.Identity)
{
return false;
}
-4
View File
@@ -82,10 +82,6 @@ namespace Swarmops.Pages.Security
PilotInstallationIds.IsPilot (PilotInstallationIds.DevelopmentSandbox) &&
Request.QueryString["SuppressAutologin"] != "true")
{
// HACK TEMPORARY FOR DEBUGGING SANDBOX
// DELETE THE FOLLOWING LINE
Person.FromIdentity(1).SetPassword("sandbox");
DashboardMessage.Set ("<p>You have been logged on as <strong>Sandbox Administrator</strong> to the Swarmops Development Sandbox.</p><br/><p>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.</p><br/><p><strong>In other words, welcome, and play away!</strong></p>");
FormsAuthentication.SetAuthCookie (Authority.FromLogin (Person.FromIdentity (1), Organization.Sandbox).ToEncryptedXml(), true);
Response.Redirect ("/");