diff --git a/Logic/Support/General.cs b/Logic/Support/General.cs index 0c84a64c..58866a69 100644 --- a/Logic/Support/General.cs +++ b/Logic/Support/General.cs @@ -92,5 +92,15 @@ namespace Swarmops.Logic.Support { get { return SwarmDb.DbVersion; } } + + public static bool DatabaseConfigured + { + get { return SwarmDb.Configuration.IsConfigured(); } + } + + public static void LogException (string source, Exception exception) + { + SwarmDb.GetDatabaseForWriting().CreateExceptionLogEntry (DateTime.UtcNow, source, exception); + } } } diff --git a/Packages/repositories.config b/Packages/repositories.config index e1deeff9..1e1e0306 100644 --- a/Packages/repositories.config +++ b/Packages/repositories.config @@ -5,6 +5,7 @@ + diff --git a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx index 95c1cf92..b18d9d92 100644 --- a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx +++ b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeFile="BitcoinEchoTest.aspx.cs" Inherits="Swarmops.Frontend.Pages.v5.Admin.BitcoinEchoTest" %> +<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Admin.BitcoinEchoTest" Codebehind="BitcoinEchoTest.aspx.cs" %> <%@ Import Namespace="Swarmops.Logic.Support" %> diff --git a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.cs b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.cs index 054dee31..86ef4551 100644 --- a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.cs +++ b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.cs @@ -1,5 +1,4 @@ using System; -using System.Activities.Validation; using System.Collections.Generic; using System.Diagnostics; using System.Linq; diff --git a/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.designer.cs b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.designer.cs new file mode 100644 index 00000000..b3d800ab --- /dev/null +++ b/Site/Pages/v5/Admin/BitcoinEchoTest.aspx.designer.cs @@ -0,0 +1,105 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Frontend.Pages.v5.Admin { + + + public partial class BitcoinEchoTest { + + /// + /// LiteralTxDetected control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralTxDetected; + + /// + /// LiteralBitcoinAddress control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralBitcoinAddress; + + /// + /// LiteralGuid control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralGuid; + + /// + /// LiteralEnable control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralEnable; + + /// + /// PanelEnabled control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel PanelEnabled; + + /// + /// BoxTitle control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label BoxTitle; + + /// + /// LabelExplainBitcoinDonation control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelExplainBitcoinDonation; + + /// + /// LabelStatus control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelStatus; + + /// + /// ImageBitcoinQr control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image ImageBitcoinQr; + + /// + /// PanelDisabled control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel PanelDisabled; + } +} diff --git a/Site/Pages/v5/Admin/CreateOrganization.aspx b/Site/Pages/v5/Admin/CreateOrganization.aspx index 5533eb9e..bb6d4b0f 100644 --- a/Site/Pages/v5/Admin/CreateOrganization.aspx +++ b/Site/Pages/v5/Admin/CreateOrganization.aspx @@ -1,4 +1,4 @@ -<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeFile="CreateOrganization.aspx.cs" Inherits="Swarmops.Frontend.Pages.v5.Admin.CreateOrganization" %> +<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Admin.CreateOrganization" Codebehind="CreateOrganization.aspx.cs" %> + + + +
+ + + + + + + +
+
|
| 
| 
+
Swarmops Logo
+
+
+
+
+ +
+
+
+ +

+
+
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + diff --git a/Site/Security/Login.aspx.cs b/Site/Security/Login.aspx.cs new file mode 100644 index 00000000..533d0103 --- /dev/null +++ b/Site/Security/Login.aspx.cs @@ -0,0 +1,448 @@ +using System; +using System.Diagnostics; +using System.Globalization; +using System.IO; +using System.Runtime.Versioning; +using System.Web; +using System.Web.ExtensionMethods; +using System.Web.Script.Serialization; +using System.Web.Security; +using System.Web.Services; +using System.Web.UI; +using NBitcoin; +using Resources; +using Swarmops.Frontend; +using Swarmops.Interface.Support; +using Swarmops.Logic.Cache; +using Swarmops.Logic.Security; +using Swarmops.Logic.Structure; +using Swarmops.Logic.Support; +using Swarmops.Logic.Swarm; + +namespace Swarmops.Pages.Security +{ + public partial class Login : DataV5Base // "Data" because we don't have a master page + { + private static string _buildIdentity; + + protected void Page_Load (object sender, EventArgs e) + { + // Check if this is the first run ever. If so, redirect to Init. + + if (!SupportFunctions.DatabaseConfigured) + { + // ReSharper disable once Html.PathError <-- this line is required for Resharper to not flag the next line as invalid + Response.Redirect ("/Initialize", true); + return; + } + + // Persistence.Key["Debug_RawData"] = Request.ToRaw(); + + // Check for POST data - for BitId via Webform + + if (Request.HttpMethod == "POST") + { + // We should ONLY get here if we're getting a BitId by Webform submission. + + Persistence.Key["BitId_RawData"] = Request.ToRaw(); + + if (Request.Params["address"] != null) + { + // yes, indeed looks like it + + BitIdCredentials credentials = new BitIdCredentials + { + address = Request.Params["address"], + uri = Request.Params["uri"], + signature = Request.Params["signature"] + }; + + ProcessRespondBitId (credentials, Response); + return; + } + if (Request.ContentType == "application/json") + { + BitIdCredentials credentials = + new JavaScriptSerializer().Deserialize ( + new StreamReader (Request.InputStream).ReadToEnd()); + // TODO: untested but seems to work. Throws? + + ProcessRespondBitId (credentials, Response); + return; + } + } + + string requestHost = Request.Url.Host; + + + + // If this is the Dev Sandbox, autologin + + if ((requestHost == "sandbox.swarmops.com" || requestHost == "dev.swarmops.com") && + PilotInstallationIds.IsPilot (PilotInstallationIds.DevelopmentSandbox) && + Request.QueryString["SuppressAutologin"] != "true") + { + 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 ("/"); + } + + // If we're on an Open Ledgers domain, autologin as Open Ledgers + + Organization organizationOpenLedgers = Organization.FromOpenLedgersDomain(requestHost); // returns null if doesn't exist + + if (organizationOpenLedgers != null) + { + DashboardMessage.Set (String.Format(Resources.Pages.Security.Login_AsOpenLedgers, organizationOpenLedgers.Name)); + FormsAuthentication.SetAuthCookie(Authority.FromLogin (Person.FromIdentity (Person.OpenLedgersIdentity), organizationOpenLedgers).ToEncryptedXml(), true); + Response.Redirect (@"/Ledgers/BalanceSheet"); + } + + // Check for SSL and force it + + // Special case for CloudFlare deployments - there is a case where somebody will get their connections de-SSLed at the server + + string cloudFlareVisitorScheme = Request.Headers["CF-Visitor"]; + bool cloudFlareSsl = false; + + if (!string.IsNullOrEmpty (cloudFlareVisitorScheme)) + { + if (cloudFlareVisitorScheme.Contains ("\"scheme\":\"https\"")) + { + cloudFlareSsl = true; + } + } + + // TODO: Same thing for Pound deployments + + // Rewrite if applicable + + if (Request.Url.ToString().StartsWith ("http://") && !cloudFlareSsl) + // only check client-side as many server sites de-SSL the connection before reaching the web server + { + if (!Request.Url.ToString().StartsWith ("http://dev.swarmops.com/") && + !(Request.Url.ToString().StartsWith ("http://localhost:") && Debugger.IsAttached)) // Debugger.IsAttached is necessary, as link can be faked + { + if (SystemSettings.RequireSsl) + { + Response.Redirect (Request.Url.ToString().Replace ("http:", "https:")); + } + } + } + + + // If we're on a vanity domain, enable the self-signup link + + Organization vanityOrganization = Organization.FromVanityDomain (Request.Url.Host); + + if (vanityOrganization != null) + { + this.LiteralSelfSignupLink.Text = @"//" + vanityOrganization.VanityDomain + @"/Signup"; + this.LabelSelfSignup.Text = String.Format (Resources.Pages.Security.Login_SelfSignup, vanityOrganization.Name); + this.LabelSelfSignupHeader.Text = Resources.Pages.Security.Login_SelfSignupHeader; + this.PanelJoin.Visible = true; + } + + + // If we're debugging, enable the auto- / impersonation login. This MUST NEVER fire outside of development environment. + + if (Debugger.IsAttached && Path.DirectorySeparatorChar == '\\') + // on Windows, with a debugger attached, so this is not a production environment + { + // but check that we're running against Localhost as well + + if (Request.Url.ToString().StartsWith("http://localhost:")) + { + this.PanelCheat.Visible = true; + } + } + + + this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginTop] = "-3px"; + this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginRight] = "3px"; + this.ImageCultureIndicator.Style[HtmlTextWriterStyle.Cursor] = "pointer"; + + Localize(); + + // Generate BitID tokens + + Guid guid = Guid.NewGuid(); + string guidString = guid.ToString().Replace ("-", ""); + + string nonce = guidString + DateTime.UtcNow.Ticks.ToString ("x8"); + + string hostName = Request.Url.Host; + + string bitIdUri = "bitid://" + hostName + "/Security/Login.aspx?x=" + nonce; + + if (Request.Url.ToString().StartsWith ("http://") && !cloudFlareSsl) + { + bitIdUri += "&u=1"; + } + + this.LiteralUri.Text = HttpUtility.UrlEncode (bitIdUri); + this.LiteralNonce.Text = nonce; + + GuidCache.Set (bitIdUri + "-Logon", "Unauth"); + + // TODO: need to NOT USE GOOGLE CHARTS for this but bring home a free QR package + + this.ImageBitIdQr.ImageUrl = + "https://chart.googleapis.com/chart?cht=qr&chs=400x400&chl=" + HttpUtility.UrlEncode (bitIdUri); + } + + + protected void ProcessRespondBitId (BitIdCredentials credentials, HttpResponse response) + { + BitcoinAddress testAddress = new BitcoinAddress (credentials.address); + if (testAddress.VerifyMessage (credentials.uri, credentials.signature)) + { + // woooooo + + try + { + if (CurrentUser != null) + { + if ((string) GuidCache.Get (credentials.uri + "-Intent") == "Register") + { + // the currently logged-on user desires to register this address + // so set currentUser bitid + CurrentUser.BitIdAddress = credentials.address; + // Then go do something else, I guess? Flag somehow to original page + // that the op is completed? + GuidCache.Set (credentials.uri + "-Intent", "Complete"); + } + } + + if (GuidCache.Get (credentials.uri + "-Logon") as string == "Unauth") + { + Person person = Person.FromBitIdAddress (credentials.address); + + // TODO: If above throws, show friendly "unknown wallet" message + + // TODO: Determine last logged-on organization. Right now, log on to Sandbox. + + GuidCache.Set (credentials.uri + "-LoggedOn", + person.Identity.ToString (CultureInfo.InvariantCulture) + ",1,,BitId 2FA"); + } + } + catch (Exception e) + { + Persistence.Key["BitIdLogin_Debug_Exception"] = e.ToString(); + } + + // TODO: Error codes + + response.StatusCode = 200; + response.SetJson(); + response.Write ("{\"address\":\"" + credentials.address + "\",\"signature\":\"" + credentials.signature + + "\"}"); + response.End(); + } + else + { + response.StatusCode = 401; // Be a bit more friendly in your return codes + } + } + + [WebMethod] + public static bool TestLogin (string uriEncoded, string nonce) + { + try + { + string uri = HttpUtility.UrlDecode (uriEncoded); + + // a little sloppy nonce and uri checking rather than full parsing + // TODO: Full URI parse, the above is not enough + if (!uri.Contains (nonce) || !uri.Contains (HttpContext.Current.Request.Url.Host)) + { + throw new ArgumentException(); + } + + string result = (string) GuidCache.Get (uri + "-LoggedOn"); + if (string.IsNullOrEmpty (result)) + { + return false; + } + + // We have a successful login when we get here + + GuidCache.Delete (uri + "-Logon"); + GuidCache.Delete (uri + "-LoggedOn"); + GuidCache.Set (nonce + "-Identity", result); + + return true; + } + catch (Exception e) + { + Persistence.Key["BitId_Test_Exception"] = e.ToString(); + + throw; + } + } + + [WebMethod] + // ReSharper disable once InconsistentNaming + public static string TestCredentials (string credentialsLogin, string credentialsPass, string credentials2FA, + string logonUriEncoded) + { + if (!string.IsNullOrEmpty (credentialsLogin.Trim()) && !string.IsNullOrEmpty (credentialsPass.Trim())) + { + string logonUri = HttpUtility.UrlDecode (logonUriEncoded); + + try + { + Person authenticatedPerson = Authentication.Authenticate (credentialsLogin, + credentialsPass); + + int lastOrgId = authenticatedPerson.LastLogonOrganizationId; + + if (PilotInstallationIds.IsPilot (PilotInstallationIds.PiratePartySE) && (lastOrgId == 3 || lastOrgId == 0)) + { + lastOrgId = 1; // legacy: log on to Piratpartiet SE if indeterminate; prevent sandbox for this pilot + authenticatedPerson.LastLogonOrganizationId = 1; // avoid future legacy problems + } + else if (lastOrgId == 0) + { + lastOrgId = Organization.SandboxIdentity; + } + + Authority testAuthority = Authority.FromLogin (authenticatedPerson, + Organization.FromIdentity (lastOrgId)); + + if (!authenticatedPerson.MemberOfWithInherited (lastOrgId) && !testAuthority.HasSystemAccess (AccessType.Read)) + { + // If the person doesn't have access to the last organization (anymore), log on to Sandbox + // unless first pilot, in which case throw (deny login) + + if (PilotInstallationIds.IsPilot (PilotInstallationIds.PiratePartySE)) + { + throw new UnauthorizedAccessException(); + } + + lastOrgId = Organization.SandboxIdentity; + } + + GuidCache.Set (logonUri + "-LoggedOn", + Authority.FromLogin (authenticatedPerson, Organization.FromIdentity (lastOrgId)).ToEncryptedXml()); + + return "Success"; // Prepare here for "2FARequired" return code + } + catch (UnauthorizedAccessException) + { + return "Fail"; + } + } + + return "Fail"; + } + + + protected override void OnPreInit (EventArgs e) + { + base.OnPreInit (e); + } + + private void Localize() + { + this.LabelCurrentOrganizationName.Text = Global.Global_Organization; + this.LabelCurrentUserName.Text = Participant.Localized (ParticipantTitle.Person, TitleVariant.Generic); + this.LabelPreferences.Text = Global.Global_NA; + this.LabelSidebarInfoHeader.Text = Global.Sidebar_Information; + this.LabelSidebarHelpHeader.Text = Global.Sidebar_Help; + this.LabelSidebarInfoContent.Text = Resources.Pages.Security.Login_Info; + this.LabelSidebarManualLoginHeader.Text = Resources.Pages.Security.Login_ManualLogin; + this.LabelHeader.Text = Resources.Pages.Security.Login_Header; + this.LabelSidebarResetPassword.Text = Resources.Pages.Security.Login_ResetPassword; + this.LiteralCredentialsUser.Text = Resources.Pages.Security.Login_Username; + this.LiteralCredentialsPass.Text = Resources.Pages.Security.Login_Password; + this.LiteralCredentials2FA.Text = Resources.Pages.Security.Login_GoogleAuthenticatorCode; + } + + + private string GetBuildIdentity() + { + // Read build number if not loaded, or set to "Private" if none + + if (_buildIdentity == null) + { + try + { + using ( + StreamReader reader = File.OpenText (HttpContext.Current.Request.MapPath ("~/BuildIdentity.txt")) + ) + { + _buildIdentity = "Build " + reader.ReadLine(); + } + } + catch (Exception) + { + _buildIdentity = "Private Build"; + } + } + + return _buildIdentity; + } + + + protected void ButtonLogin_Click (object sender, EventArgs args) + { + // Check the host names and addresses again as a security measure - after all, we can be called from outside our intended script + /* + if (!(VerifyHostName(this.TextServerName.Text) && VerifyHostAddress(this.TextServerAddress.Text))) + { + if (!System.Diagnostics.Debugger.IsAttached) + { + return; // Probable hack attempt - fail silently + } + } + + Swarmops.Logic.Swarm.Person expectedPersonOne = Swarmops.Logic.Security.Authentication.Authenticate("1", + this.TextFirstUserPassword1.Text); + + if (expectedPersonOne != null) + { + FormsAuthentication.RedirectFromLoginPage("1,1", true); + Response.Redirect("/", true); + }*/ + } + + protected void ButtonCheat_Click (object sender, EventArgs e) + { + // If we're debugging, enable the auto- / impersonation login. This MUST NEVER fire outside of development environment. + + if (Debugger.IsAttached && Path.DirectorySeparatorChar == '\\') + // on Windows, with a debugger attached, so this is not a production environment + { + // but check that we're running against Localhost on non-SSL on a nonstandard port as well + + if (Request.Url.ToString().StartsWith("http://localhost:")) + { + Authority cheatLogon = Authority.FromLogin (Person.FromIdentity (1), Organization.Sandbox); + FormsAuthentication.RedirectFromLoginPage (cheatLogon.ToEncryptedXml(), true); + } + } + } + + + // ReSharper disable InconsistentNaming + [Serializable] + public class BitIdCredentials + { + // Lowercase for Json serializability to BitId spec. + public string address { get; set; } + public string uri { get; set; } + public string signature { get; set; } + } + + [Serializable] + public class BitIdResponseSuccess + { + // Lowercase for Json serializability to BitId spec. + public string address { get; set; } + public string signature { get; set; } + } + + // ReSharper restore InconsistentNaming + } +} \ No newline at end of file diff --git a/Site/Security/Login.aspx.designer.cs b/Site/Security/Login.aspx.designer.cs new file mode 100644 index 00000000..bec74c0c --- /dev/null +++ b/Site/Security/Login.aspx.designer.cs @@ -0,0 +1,249 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Pages.Security { + + + public partial class Login { + + /// + /// Head1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// form2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form2; + + /// + /// ScriptManagerBlahblah control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.ScriptManager ScriptManagerBlahblah; + + /// + /// LiteralUri control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralUri; + + /// + /// LiteralNonce control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralNonce; + + /// + /// LiteralSelfSignupLink control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralSelfSignupLink; + + /// + /// LabelCurrentUserName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelCurrentUserName; + + /// + /// LabelCurrentOrganizationName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelCurrentOrganizationName; + + /// + /// LabelPreferences control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelPreferences; + + /// + /// ImageCultureIndicator control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image ImageCultureIndicator; + + /// + /// SearchBox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox SearchBox; + + /// + /// LabelHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelHeader; + + /// + /// ImageBitIdQr control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image ImageBitIdQr; + + /// + /// LabelSidebarInfoHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarInfoHeader; + + /// + /// LabelSidebarInfoContent control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarInfoContent; + + /// + /// LabelSidebarManualLoginHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarManualLoginHeader; + + /// + /// LiteralCredentialsUser control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralCredentialsUser; + + /// + /// LiteralCredentialsPass control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralCredentialsPass; + + /// + /// LiteralCredentials2FA control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal LiteralCredentials2FA; + + /// + /// PanelCheat control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel PanelCheat; + + /// + /// ButtonCheat control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button ButtonCheat; + + /// + /// LabelSidebarHelpHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarHelpHeader; + + /// + /// LabelSidebarResetPassword control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarResetPassword; + + /// + /// PanelJoin control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel PanelJoin; + + /// + /// LabelSelfSignupHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSelfSignupHeader; + + /// + /// LabelSelfSignup control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSelfSignup; + } +} diff --git a/Site/Security/RequestPasswordReset.aspx b/Site/Security/RequestPasswordReset.aspx new file mode 100644 index 00000000..4353a026 --- /dev/null +++ b/Site/Security/RequestPasswordReset.aspx @@ -0,0 +1,135 @@ +<%@ Page Language="C#" AutoEventWireup="true" Inherits="Swarmops.Pages.Security.RequestPasswordReset" Codebehind="RequestPasswordReset.aspx.cs" %> + + + + + + + + + + + + + + + + + + + Swarmops Alpha - Request Password Reset + + + + + + + + + + + +
+ + + + + + + +
+
|
| 
| 
+
Swarmops Logo
+
+
+
+ +
+
+
+

+
+
+ ​
+ +
+ +
+
+
+

+
+
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + diff --git a/Site/Security/RequestPasswordReset.aspx.cs b/Site/Security/RequestPasswordReset.aspx.cs new file mode 100644 index 00000000..6bedf2cb --- /dev/null +++ b/Site/Security/RequestPasswordReset.aspx.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Web; +using System.Web.Configuration; +using System.Web.Services; +using System.Web.UI; +using System.Web.UI.WebControls; +using Swarmops.Frontend; +using Swarmops.Logic.Communications; +using Swarmops.Logic.Communications.Payload; +using Swarmops.Logic.Support; +using Swarmops.Logic.Support.LogEntries; +using Swarmops.Logic.Swarm; + +namespace Swarmops.Pages.Security +{ + public partial class RequestPasswordReset : DataV5Base // "Data" because we don't have a master page + { + protected void Page_Load(object sender, EventArgs e) + { + this.Title = Resources.Pages.Security.ResetPassword_PageTitle; + this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginTop] = "-3px"; + this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginRight] = "3px"; + + if (!Page.IsPostBack) + { + Localize(); + } + + this.TextMailAddress.Focus(); + } + + private void Localize() + { + // Normal template + this.LabelSidebarInfoContent.Text = Resources.Pages.Security.ResetPassword_InfoRequest; + this.LabelSidebarInfoHeader.Text = Resources.Global.Sidebar_Information; + this.LabelCurrentOrganizationName.Text = Resources.Global.Global_Organization; + this.LabelCurrentUserName.Text = Resources.Global.Global_NoOwner; + this.LabelPreferences.Text = Resources.Global.CurrentUserInfo_Preferences; + + // Page specific + this.LabelContentTitle.Text = Resources.Pages.Security.ResetPassword_PageTitle; + this.LabelMail.Text = Resources.Pages.Security.ResetPassword_Mail1; + this.LabelSuccessMaybe.Text = Resources.Pages.Security.ResetPassword_TicketSentMaybe; + this.ButtonRequest.Text = Resources.Pages.Security.ResetPassword_Reset; + } + + [WebMethod] + public static bool RequestTicket (string mailAddress) + { + mailAddress = mailAddress.Trim(); + + if (string.IsNullOrEmpty (mailAddress)) + { + return false; // this is the only case when we return false: a _syntactically_invalid_ address + } + + People concernedPeople = People.FromMail (mailAddress); // Should result in exactly 1 + + if (concernedPeople.Count != 1) + { + return true; // TODO: Prevent registration with duplicate mail addy, or this will cause problems down the road + } + + Person concernedPerson = concernedPeople[0]; + + if (!string.IsNullOrEmpty (concernedPerson.BitIdAddress)) + { + // Cannot reset password - two factor auth is enabled. Manual intervention required. + + OutboundComm.CreateSecurityNotification (concernedPerson, null, null, string.Empty, + NotificationResource.Password_CannotReset2FA); + return true; // still returning true - the fail info is in mail only + } + + + string resetTicket = SupportFunctions.GenerateSecureRandomKey (16); + resetTicket = resetTicket.Substring (0, 21); // We're using a 21-character (84-bit) key mostly for UI consistency with the ticket sent in mail, and it's secure enough + + concernedPerson.ResetPasswordTicket = DateTime.UtcNow.AddHours (1).ToString(CultureInfo.InvariantCulture) + "," + resetTicket; // Adds expiry - one hour + + OutboundComm.CreateSecurityNotification (concernedPerson, null, null, resetTicket, + NotificationResource.Password_ResetOnRequest); + + SwarmopsLog.CreateEntry (null, + new PasswordResetRequestLogEntry (concernedPerson, SupportFunctions.GetRemoteIPAddressChain())); + + return true; + } + + } +} \ No newline at end of file diff --git a/Site/Security/RequestPasswordReset.aspx.designer.cs b/Site/Security/RequestPasswordReset.aspx.designer.cs new file mode 100644 index 00000000..4394d2e7 --- /dev/null +++ b/Site/Security/RequestPasswordReset.aspx.designer.cs @@ -0,0 +1,141 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Pages.Security { + + + public partial class RequestPasswordReset { + + /// + /// Head1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// form2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form2; + + /// + /// ScriptManagerBlahblah control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.ScriptManager ScriptManagerBlahblah; + + /// + /// LabelCurrentUserName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelCurrentUserName; + + /// + /// LabelCurrentOrganizationName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelCurrentOrganizationName; + + /// + /// LabelPreferences control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelPreferences; + + /// + /// ImageCultureIndicator control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image ImageCultureIndicator; + + /// + /// LabelContentTitle control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelContentTitle; + + /// + /// TextMailAddress control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox TextMailAddress; + + /// + /// ButtonRequest control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button ButtonRequest; + + /// + /// LabelMail control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelMail; + + /// + /// LabelSuccessMaybe control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSuccessMaybe; + + /// + /// LabelSidebarInfoHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarInfoHeader; + + /// + /// LabelSidebarInfoContent control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarInfoContent; + } +} diff --git a/Site/Security/ResetPassword.aspx b/Site/Security/ResetPassword.aspx new file mode 100644 index 00000000..af98ac82 --- /dev/null +++ b/Site/Security/ResetPassword.aspx @@ -0,0 +1,149 @@ +<%@ Page Language="C#" AutoEventWireup="true" Inherits="Swarmops.Pages.Security.ResetPassword" Codebehind="ResetPassword.aspx.cs" %> + + + + + + + + + + + + + + + + + + + Swarmops Alpha - Password Reset + + + + + + + + + + + +
+ + + + + + + +
+
|
| 
| 
+
Swarmops Logo
+
+
+ +
+ +
+
+
+

+
+
+ ​
+ ​
+ ​
+ ​
+ +
+ +
+
+
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + diff --git a/Site/Security/ResetPassword.aspx.cs b/Site/Security/ResetPassword.aspx.cs new file mode 100644 index 00000000..1b858897 --- /dev/null +++ b/Site/Security/ResetPassword.aspx.cs @@ -0,0 +1,149 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Web; +using System.Web.Configuration; +using System.Web.Security; +using System.Web.Services; +using System.Web.UI; +using System.Web.UI.WebControls; +using Swarmops.Frontend; +using Swarmops.Interface.Support; +using Swarmops.Logic.Communications; +using Swarmops.Logic.Communications.Payload; +using Swarmops.Logic.Security; +using Swarmops.Logic.Structure; +using Swarmops.Logic.Support; +using Swarmops.Logic.Support.LogEntries; +using Swarmops.Logic.Swarm; + +namespace Swarmops.Pages.Security +{ + public partial class ResetPassword : DataV5Base + { + protected void Page_Load(object sender, EventArgs e) + { + this.Title = Resources.Pages.Security.ResetPassword_PageTitle; + this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginTop] = "-3px"; + this.ImageCultureIndicator.Style[HtmlTextWriterStyle.MarginRight] = "3px"; + + if (!Page.IsPostBack) + { + string suppliedTicket = Request.QueryString["Ticket"]; + if (!string.IsNullOrEmpty (suppliedTicket) && suppliedTicket.Trim().Length == 21) + { + this.TextTicket.Text = suppliedTicket.Trim().ToUpperInvariant(); + this.TextTicket.ReadOnly = true; + this.TextTicket.Enabled = false; + } + + Localize(); + } + + this.TextMailAddress.Focus(); + } + + private void Localize() + { + // Normal template + this.LabelSidebarInfoContent.Text = Resources.Pages.Security.ResetPassword_Info; + this.LabelSidebarInfoHeader.Text = Resources.Global.Sidebar_Information; + this.LabelCurrentOrganizationName.Text = Resources.Global.Global_Organization; + this.LabelCurrentUserName.Text = Resources.Global.Global_NoOwner; + this.LabelPreferences.Text = Resources.Global.CurrentUserInfo_Preferences; + + // Page specific + this.LabelContentTitle.Text = Resources.Pages.Security.ResetPassword_PageTitle; + this.LabelMail.Text = Resources.Pages.Security.ResetPassword_Mail2; + this.LabelPassword1.Text = Resources.Pages.Security.ResetPassword_Password; + this.LabelPassword2.Text = Resources.Pages.Security.ResetPassword_PasswordRepeat; + this.LabelTicket.Text = Resources.Pages.Security.ResetPassword_Ticket; + this.ButtonRequest.Text = Resources.Pages.Security.ResetPassword_Reset; + } + + [WebMethod] + public static bool PerformReset (string mailAddress, string ticket, string newPassword) + { + People people = People.FromMail (mailAddress.Trim()); + if (people.Count != 1) + { + return false; + } + + Person resetPerson = people[0]; + string[] resetData = resetPerson.ResetPasswordTicket.Split (','); + + if (resetData.Length != 2) + { + return false; // invalid data or no ticket + } + + // This may throw on invalid data, which will give a slightly different error but that's fine too for now. + DateTime ticketExpiresUtc = DateTime.Parse(resetData[0]); + if (DateTime.UtcNow > ticketExpiresUtc) + { + // Ticket expired. + return false; + } + + if (ticket != resetData[1]) + { + // Bad ticket. + return false; + } + + // When we get here, all checks to reset the password have completed. Change the password, log the change, + // notify the user that the password was changed, set a new authentication cookie, and have the web page + // redirect to Dashboard (by returning true). + + // Clear password reset ticket + + resetPerson.ResetPasswordTicket = string.Empty; + + // Create lockdown code, notify + + string lockdownTicket = SupportFunctions.GenerateSecureRandomKey (16); + OutboundComm.CreateSecurityNotification (resetPerson, null, null, lockdownTicket, + NotificationResource.Password_Changed); + resetPerson.AccountLockdownTicket = DateTime.UtcNow.AddDays (1).ToString (CultureInfo.InvariantCulture) + "," + + lockdownTicket; + + // Set new password + + resetPerson.SetPassword (newPassword); + + // Log the password reset + + SwarmopsLog.CreateEntry (resetPerson, + new PasswordResetLogEntry (resetPerson, SupportFunctions.GetRemoteIPAddressChain())); + + // Set authentication cookies + + int lastOrgId = resetPerson.LastLogonOrganizationId; + + if (lastOrgId == 0) + { + lastOrgId = Organization.SandboxIdentity; + } + + if (!resetPerson.MemberOfWithInherited(lastOrgId)) + { + // If the person doesn't have access to the last organization (anymore), log on to Sandbox + + lastOrgId = 1; + } + + // Set cookies + + FormsAuthentication.SetAuthCookie(Authority.FromLogin (resetPerson).ToEncryptedXml(), true); + DashboardMessage.Set (Resources.Pages.Security.ResetPassword_Success); + + return true; // temp + + // do NOT NOT NOT trim password - this is deliberate. Passwords starting/ending in whitespace must be possible + + + } + } +} \ No newline at end of file diff --git a/Site/Security/ResetPassword.aspx.designer.cs b/Site/Security/ResetPassword.aspx.designer.cs new file mode 100644 index 00000000..9ea76715 --- /dev/null +++ b/Site/Security/ResetPassword.aspx.designer.cs @@ -0,0 +1,195 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Pages.Security { + + + public partial class ResetPassword { + + /// + /// Head1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// form2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form2; + + /// + /// ScriptManagerBlahblah control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.ScriptManager ScriptManagerBlahblah; + + /// + /// LabelCurrentUserName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelCurrentUserName; + + /// + /// LabelCurrentOrganizationName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelCurrentOrganizationName; + + /// + /// LabelPreferences control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelPreferences; + + /// + /// ImageCultureIndicator control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Image ImageCultureIndicator; + + /// + /// SearchBox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox SearchBox; + + /// + /// LabelContentTitle control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelContentTitle; + + /// + /// TextMailAddress control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox TextMailAddress; + + /// + /// TextTicket control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox TextTicket; + + /// + /// TextPassword1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox TextPassword1; + + /// + /// TextPassword2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox TextPassword2; + + /// + /// ButtonRequest control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button ButtonRequest; + + /// + /// LabelMail control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelMail; + + /// + /// LabelTicket control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelTicket; + + /// + /// LabelPassword1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelPassword1; + + /// + /// LabelPassword2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelPassword2; + + /// + /// LabelSidebarInfoHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarInfoHeader; + + /// + /// LabelSidebarInfoContent control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelSidebarInfoContent; + } +} diff --git a/Site/Security/web.config b/Site/Security/web.config new file mode 100644 index 00000000..188a433d --- /dev/null +++ b/Site/Security/web.config @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/Site/Site.csproj b/Site/Site.csproj index 5d5d84ad..8b248bab 100644 --- a/Site/Site.csproj +++ b/Site/Site.csproj @@ -19,6 +19,8 @@ + ..\ + true true @@ -40,6 +42,14 @@ + + False + bin\NBitcoin.dll + + + False + bin\NGeoIP.dll + @@ -58,8 +68,506 @@ + + BitcoinEchoTest.aspx + ASPXCodeBehind + + + BitcoinEchoTest.aspx + + + CreateOrganization.aspx + ASPXCodeBehind + + + CreateOrganization.aspx + + + PopulateCountry1.aspx + ASPXCodeBehind + + + PopulateCountry1.aspx + + + PopulateCountry2.aspx + ASPXCodeBehind + + + PopulateCountry2.aspx + + + PopulateFakePeople.aspx + ASPXCodeBehind + + + PopulateFakePeople.aspx + + + Temp-SetOrganizationAdminAccess.aspx + ASPXCodeBehind + + + Temp-SetOrganizationAdminAccess.aspx + + + TemporaryHack.aspx + ASPXCodeBehind + + + TemporaryHack.aspx + + + OrgSettings.aspx + ASPXCodeBehind + + + OrgSettings.aspx + + + OrgStaffing.aspx + ASPXCodeBehind + + + OrgStaffing.aspx + + + SystemSettings.aspx + ASPXCodeBehind + + + SystemSettings.aspx + + + SendMassMessage.aspx + ASPXCodeBehind + + + SendMassMessage.aspx + + + AttestCosts.aspx + ASPXCodeBehind + + + AttestCosts.aspx + + + BitcoinHotwalletNotEnabled.aspx + ASPXCodeBehind + + + BitcoinHotwalletNotEnabled.aspx + + + CreateInboundInvoice.aspx + ASPXCodeBehind + + + CreateInboundInvoice.aspx + + + Donate.aspx + ASPXCodeBehind + + + Donate.aspx + + + EconomyNotEnabled.aspx + ASPXCodeBehind + + + EconomyNotEnabled.aspx + + + FileExpenseClaim.aspx + ASPXCodeBehind + + + FileExpenseClaim.aspx + + + Json-AttestableCosts.aspx + ASPXCodeBehind + + + Json-AttestableCosts.aspx + + + Json-PayableCosts.aspx + ASPXCodeBehind + + + Json-PayableCosts.aspx + + + Json-PayableCostsOcr.aspx + ASPXCodeBehind + + + Json-PayableCostsOcr.aspx + + + Json-ValidatableReceipts.aspx + ASPXCodeBehind + + + Json-ValidatableReceipts.aspx + + + PayOutMoney.aspx + ASPXCodeBehind + + + PayOutMoney.aspx + + + RequestCashAdvance.aspx + ASPXCodeBehind + + + RequestCashAdvance.aspx + + + ValidateReceipts.aspx + ASPXCodeBehind + + + ValidateReceipts.aspx + + + AccountPlan.aspx + ASPXCodeBehind + + + AccountPlan.aspx + + + BalanceSheet.aspx + ASPXCodeBehind + + + BalanceSheet.aspx + + + BalanceTransactions.aspx + ASPXCodeBehind + + + BalanceTransactions.aspx + + + BitcoinHotwallet.aspx + ASPXCodeBehind + + + BitcoinHotwallet.aspx + + + BudgetActual.aspx + ASPXCodeBehind + + + BudgetActual.aspx + + + CloseLedgers.aspx + ASPXCodeBehind + + + CloseLedgers.aspx + + + Csv-BalanceData.aspx + ASPXCodeBehind + + + Csv-BalanceData.aspx + + + Csv-ProfitLossData.aspx + ASPXCodeBehind + + + Csv-ProfitLossData.aspx + + + DebugLedgers.aspx + ASPXCodeBehind + + + DebugLedgers.aspx + + + InspectLedgers.aspx + ASPXCodeBehind + + + InspectLedgers.aspx + + + Json-AccountPlanData.aspx + ASPXCodeBehind + + + Json-AccountPlanData.aspx + + + Json-BalanceSheetData.aspx + ASPXCodeBehind + + + Json-BalanceSheetData.aspx + + + Json-BitcoinHotwalletData.aspx + ASPXCodeBehind + + + Json-BitcoinHotwalletData.aspx + + + Json-BudgetActualData.aspx + ASPXCodeBehind + + + Json-BudgetActualData.aspx + + + Json-InspectLedgerData.aspx + ASPXCodeBehind + + + Json-InspectLedgerData.aspx + + + Json-InspectLedgerTxData.aspx + ASPXCodeBehind + + + Json-InspectLedgerTxData.aspx + + + Json-OutstandingAccounts.aspx + ASPXCodeBehind + + + Json-OutstandingAccounts.aspx + + + Json-ProfitLossData.aspx + ASPXCodeBehind + + + Json-ProfitLossData.aspx + + + Json-ResyncPreview.aspx + ASPXCodeBehind + + + Json-ResyncPreview.aspx + + + Json-UnbalancedTransactions.aspx + ASPXCodeBehind + + + Json-UnbalancedTransactions.aspx + + + ProfitLossStatement.aspx + ASPXCodeBehind + + + ProfitLossStatement.aspx + + + ResyncExternalAccount.aspx + ASPXCodeBehind + + + ResyncExternalAccount.aspx + + + Json-Payroll-TaxFormData.aspx + ASPXCodeBehind + + + Json-Payroll-TaxFormData.aspx + + + PayrollForms.aspx + ASPXCodeBehind + + + PayrollForms.aspx + + + UploadBankFiles.aspx + ASPXCodeBehind + + + UploadBankFiles.aspx + + + ViewOutstandingAccounts.aspx + ASPXCodeBehind + + + ViewOutstandingAccounts.aspx + + + Initialize.aspx + ASPXCodeBehind + + + Initialize.aspx + + + Json-SignupVolunteerPositions.aspx + ASPXCodeBehind + + + Json-SignupVolunteerPositions.aspx + + + Signup.aspx + ASPXCodeBehind + + + Signup.aspx + + + AccessDenied.aspx + ASPXCodeBehind + + + AccessDenied.aspx + + + ChangeOrganizations.aspx + ASPXCodeBehind + + + ChangeOrganizations.aspx + + + ChangeOrganizationsAdvanced.aspx + ASPXCodeBehind + + + ChangeOrganizationsAdvanced.aspx + + + DatabaseUpgradeRequired.aspx + ASPXCodeBehind + + + DatabaseUpgradeRequired.aspx + + + Json-AccessibleOrganizationsTree.aspx + ASPXCodeBehind + + + Json-AccessibleOrganizationsTree.aspx + + + SetCurrentOrganization.aspx + ASPXCodeBehind + + + SetCurrentOrganization.aspx + + + StreamUpload.aspx + ASPXCodeBehind + + + StreamUpload.aspx + + + AddPerson.aspx + ASPXCodeBehind + + + AddPerson.aspx + + + Json-ListFindPeople.aspx + ASPXCodeBehind + + + Json-ListFindPeople.aspx + + + ListFindPeople.aspx + ASPXCodeBehind + + + ListFindPeople.aspx + + + LocalOrganization.aspx + ASPXCodeBehind + + + LocalOrganization.aspx + + + SelectLanguage.aspx + ASPXCodeBehind + + + SelectLanguage.aspx + + + SetCulture.aspx + ASPXCodeBehind + + + SetCulture.aspx + + + FinalizeLogin.aspx + ASPXCodeBehind + + + FinalizeLogin.aspx + + + Login-Old.aspx + ASPXCodeBehind + + + Login-Old.aspx + + + Login.aspx + ASPXCodeBehind + + + Login.aspx + + + RequestPasswordReset.aspx + ASPXCodeBehind + + + RequestPasswordReset.aspx + + + ResetPassword.aspx + ASPXCodeBehind + + + ResetPassword.aspx + TestBookkeepingIntegrity.aspx + ASPXCodeBehind TestBookkeepingIntegrity.aspx @@ -414,6 +922,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1128,6 +1703,23 @@ + + + + + + + + + + + + + + + + + @@ -2498,6 +3090,8 @@ + + @@ -2521,6 +3115,7 @@ + web.config @@ -3483,6 +4078,10 @@ {bbf83512-8486-469e-9d7b-c3c1b78c3f4d} Common + + {3a5b5f19-51a5-48ce-a82e-97d5c189e5cb} + Database + {ba24faf7-d518-49e8-952a-45595682877e} Interface @@ -3517,6 +4116,13 @@ + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + +