More validation debugging
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 ("/");
|
||||
|
||||
Reference in New Issue
Block a user