Added deeplinks to Open Ledgers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user