From f335c035be9a7e212500cec9052b18e9f923aa01 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 25 Jan 2015 14:30:47 +0100 Subject: [PATCH] More work on Reset Password --- Site5/App_GlobalResources/Pages.Security.resx | 51 +++++++++++++++++++ Site5/Security/RequestPasswordReset.aspx | 30 +++++------ 2 files changed, 65 insertions(+), 16 deletions(-) diff --git a/Site5/App_GlobalResources/Pages.Security.resx b/Site5/App_GlobalResources/Pages.Security.resx index 53375a9b..3ad7065f 100644 --- a/Site5/App_GlobalResources/Pages.Security.resx +++ b/Site5/App_GlobalResources/Pages.Security.resx @@ -160,6 +160,21 @@ <p>There is a database upgrade pending that prevents your access to this page. <strong>This is a temporary condition</strong> and the Swarmops servers should already be working on performing the necessary upgrade.</p> <p>Retry loading the page in a few minutes. If the condition persists for more than fifteen minutes, contact your system administrator.</p> + + The account <strong>was not locked down</strong>. There is no such account, or the ticket was invalid or too old. If you still want to lock down this account, contact the administrators of this Swarmops installation. + + + If you're seeing this page, you're trying to lock down a user account for security reasons. If the link was valid and hasn't expired, the account is already locked down. + + + User Account Lockdown + + + The account has been <strong>successfully locked down</strong> and any active sessions are now terminated. + + + Lockdown Ticket + <strong>BitId two-factor authentication is now enabled.</strong><br/><br/>From now on, you can use your bitcoin wallet to log in (and will <strong>need</strong> to do so). Thank you for enabling added security.<br/><br/>Please remember to keep your phone secure with a password, too. @@ -199,4 +214,40 @@ User + + Reset password for mail address + + + There is no valid password reset ticket for this email address, the address does not exist, the password reset ticket is invalid, or it has expired. Password reset failed. + + + You're resetting the password for a user account. Enter your new password twice to set it and login. + + + The new password cannot be empty. + + + Reset Password + + + New Password + + + Repeat New Password + + + You may reset the password associated with an email address. A link with a ticket code will be sent to that email address, which you must follow to reset your password. + + + Reset + + + Your password was changed and you have been logged in to Swarmops using your new password. + + + Ticket + + + If the email was associated with an account on this Swarmops installation, a reset ticket has now been sent. Open that mail and click the link in the mail to reset your password. (If the email did not exist, nothing was sent.)<br/><br/>You may close this browser tab. It is not needed anymore. + \ No newline at end of file diff --git a/Site5/Security/RequestPasswordReset.aspx b/Site5/Security/RequestPasswordReset.aspx index c28b7b68..80217f44 100644 --- a/Site5/Security/RequestPasswordReset.aspx +++ b/Site5/Security/RequestPasswordReset.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Swarmops.Pages.Security.RequestPasswordReset" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RequestPasswordReset.aspx.cs" Inherits="Swarmops.Pages.Security.RequestPasswordReset" %> @@ -58,9 +58,19 @@
- -

-
+

+
+
+ ​
+ +
+ +
+
+ +
@@ -86,18 +96,6 @@
- -

Dev's Cheat Button

- -
-
-

Since we're running on localhost, on a nonstandard port, with a debugger attached, and under Windows, this is clearly not a production environment. Since it's unlikely that the outside Internet has access to this machine, which means you can't login with BitID, a cheat button has been provided for you.

Press the button below to log on as Sandbox Administrator.

- -
-
-
-
-