Added deeplinks to Open Ledgers

This commit is contained in:
Rick Falkvinge
2017-12-01 14:16:02 +01:00
parent f89719cc8c
commit cc6fcb775c
+8 -1
View File
@@ -93,7 +93,14 @@ namespace Swarmops.Pages.Security
{
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/Balance");
if (HttpContext.Current.Request["ReturnUrl"] == "/")
{
Response.Redirect(@"/Ledgers/Balance");
}
else
{
Response.Redirect(HttpContext.Current.Request["ReturnUrl"]); // Returns to the requested URL with auth cookie set
}
}
// Check for SSL and force it