Final URL prettification - Mono test
This commit is contained in:
@@ -14,12 +14,13 @@ namespace Swarmops.Security
|
||||
|
||||
if (string.IsNullOrEmpty (identity))
|
||||
{
|
||||
Response.Redirect ("Login.aspx");
|
||||
Response.Redirect ("Login");
|
||||
}
|
||||
else
|
||||
{
|
||||
GuidCache.Delete (nonce + "-Identity");
|
||||
FormsAuthentication.RedirectFromLoginPage (identity, true);
|
||||
FormsAuthentication.SetAuthCookie (identity, true);
|
||||
Response.Redirect ("/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
success: function(msg) {
|
||||
if (msg.d) {
|
||||
// Login confirmed, fetch auth cookie from nonce in-context
|
||||
document.location = "/Security/FinalizeLogin.aspx?Nonce=" + bitIdNonce;
|
||||
document.location = "/Security/FinalizeLogin?Nonce=" + bitIdNonce;
|
||||
} else {
|
||||
// Retry twice per second
|
||||
setTimeout(function() {
|
||||
|
||||
@@ -78,7 +78,8 @@ namespace Swarmops.Pages.Security
|
||||
Response.AppendCookie (new HttpCookie ("DashboardMessage",
|
||||
HttpUtility.UrlEncode (
|
||||
"<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.RedirectFromLoginPage ("1,1", true);
|
||||
FormsAuthentication.SetAuthCookie ("1,1", true);
|
||||
Response.Redirect ("/");
|
||||
}
|
||||
|
||||
// Check for SSL and force it
|
||||
|
||||
Reference in New Issue
Block a user