First work on Reset Password
This commit is contained in:
@@ -75,7 +75,7 @@ namespace Swarmops.Basic.Enums
|
||||
LimitMailToLatin1,
|
||||
|
||||
/// <summary>
|
||||
/// ?
|
||||
/// Ticket used to reset an account password. Format is {datetimeUtcExpires},{ticket}.
|
||||
/// </summary>
|
||||
ResetPasswordTicket,
|
||||
|
||||
@@ -268,7 +268,7 @@ namespace Swarmops.Basic.Enums
|
||||
|
||||
/// <summary>
|
||||
/// A National ID number, if any. Like US SSN.
|
||||
/// </summary>
|
||||
/// </summary>untLockdownTicket
|
||||
NationalIdNumber,
|
||||
|
||||
/// <summary>
|
||||
@@ -289,6 +289,17 @@ namespace Swarmops.Basic.Enums
|
||||
/// <summary>
|
||||
/// For a person, the last logged-on organization id. Used to go back there on new login.
|
||||
/// </summary>
|
||||
LastLoginOrganizationId
|
||||
LastLoginOrganizationId,
|
||||
|
||||
/// <summary>
|
||||
/// Can be used to lock down a person's account. Format {datetimeUtcExpires},{ticket}.
|
||||
/// </summary>
|
||||
AccountLockdownTicket,
|
||||
|
||||
/// <summary>
|
||||
/// The datetime UTC when the account was set under lockdown (or empty/null if it is not).
|
||||
/// </summary>
|
||||
AccountUnderLockdownSince
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Swarmops.Pages.Security.RequestPasswordReset" %>
|
||||
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head id="Head1" runat="server">
|
||||
|
||||
<!-- jQuery and plugins -->
|
||||
<script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" ></script>
|
||||
<script language="javascript" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="/Scripts/jquery.json.min.js"></script>
|
||||
|
||||
<!-- fonts -->
|
||||
<link href='https://fonts.googleapis.com/css?family=Permanent+Marker' rel='stylesheet' type='text/css' />
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu:light,regular,500,bold' rel='stylesheet' type='text/css' />
|
||||
<link href='https://fonts.googleapis.com/css?family=Arimo:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css' />
|
||||
|
||||
<!-- page title -->
|
||||
<title>Swarmops Alpha - Request Password Reset</title>
|
||||
|
||||
<link href="/Style/style-v5.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/Style/alertify.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!-- custom styles -->
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<form id="form2" runat="server">
|
||||
<asp:ScriptManager runat="server" ID="ScriptManagerBlahblah" />
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
/* document.ready goes here */
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<!-- Main menu, emptied out here -->
|
||||
|
||||
<div class="center980px">
|
||||
<div class="currentuserinfo"><div style="background-image: url('/Images/Icons/iconshock-user-16px.png'); background-repeat: no-repeat; padding-left: 16px; float: left"><asp:Label ID="LabelCurrentUserName" runat="server" /> | </div><div style="background-image: url('/Images/Icons/iconshock-workchair-16px.png'); background-repeat: no-repeat; padding-left: 17px; float: left"><asp:Label ID="LabelCurrentOrganizationName" runat="server" /> | </div><div style="background-image: url('/Images/Icons/iconshock-gamepad-16px.png'); background-repeat: no-repeat; padding-left: 20px; float: left"><asp:Label ID="LabelPreferences" runat="server" /> | </div><asp:Image ID="ImageCultureIndicator" runat="server" ImageUrl="~/Images/Flags/uk-24px.png" /></div>
|
||||
<div class="logoimage"><a href="/"><img style="border: none" src="/Security/Images/Swarmops-Logo.png" alt="Swarmops Logo" /></a></div>
|
||||
<div class="break"></div>
|
||||
<div class="topmenu">
|
||||
<div class="searchbox"><asp:TextBox ID="SearchBox" ReadOnly="true" runat="server" /></div>
|
||||
</div>
|
||||
|
||||
<div class="mainbar">
|
||||
<div class="box">
|
||||
<div class="content">
|
||||
|
||||
<h2><asp:Label ID="LabelHeader" runat="server" Text="XYZ Login with blockchain technology (BitID)" /></h2>
|
||||
<div align="center"><asp:Image ID="ImageBitIdQr" runat="server"/></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="sidebar">
|
||||
<h2 class="blue"><asp:Label ID="LabelSidebarInfoHeader" runat="server" /><span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content">
|
||||
<asp:Label ID="LabelSidebarInfoContent" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="blue"><asp:Label ID="LabelSidebarManualLoginHeader" runat="server" /><span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content" style="line-height: 24px">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr><td><asp:Literal ID="LiteralCredentialsUser" runat="server" /> </td><td align="right"><input id="TextLogin" class="InputManualCredentials" type="text" /></td></tr>
|
||||
<tr><td><asp:Literal ID="LiteralCredentialsPass" runat="server" /> </td><td align="right"><input id="TextPass" class="InputManualCredentials" type="password" /></td></tr>
|
||||
<tr style="display: none"><td><asp:Literal id="LiteralCredentials2FA" runat="server" /> </td><td><input id="Text2FA" class="InputManualCredentials" type="password" /></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<asp:Panel ID="PanelCheat" runat="server" Visible="false">
|
||||
<h2 class="blue">Dev's Cheat Button<span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content" style="line-height: 14px">
|
||||
<p>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.</p><p>Press the button below to log on as Sandbox Administrator.</p>
|
||||
|
||||
<div align="right"><asp:Button ID="ButtonCheat" runat="server" OnClick="ButtonCheat_Click" Text="Cheat Button" /></div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
|
||||
<h2 class="orange"><asp:Label ID="LabelSidebarHelpHeader" runat="server" /><span class="arrow"></span></h2>
|
||||
|
||||
<div class="box">
|
||||
<div class="content">
|
||||
<div class="link-row-encaps" onclick=" return false; " >
|
||||
<div class="link-row-icon" style="background-image: url('/Images/Icons/iconshock-databaseconnect-16px.png')"></div>
|
||||
<asp:Label ID="LabelSidebarResetPassword" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<!-- some javascript in footer -->
|
||||
|
||||
<script language="javascript" type="text/javascript" src="/Scripts/alertify.min.js" ></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace Swarmops.Pages.Security
|
||||
{
|
||||
public partial class RequestPasswordReset : DataV5Base // "Data" because we don't have a master page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user