Final URL prettification - Mono test

This commit is contained in:
Rick Falkvinge
2014-12-21 10:32:45 +01:00
parent 73641e046c
commit 3774e7f2f0
3 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -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 ("/");
}
}
}
+1 -1
View File
@@ -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() {
+2 -1
View File
@@ -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