Hi @guptast
You are correct changing the index.html
to index.aspx
will require you to add a web.config
file to the root directory with the following.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="index.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
Unfortunately I have not done any videos on the other functions you are wanting to add.
Honestly though it is not very difficult to do, just remember that if you are using password encryption then there is no real way to decrypt the string back into plaintext. What I normally would do with reset functionality is to email the user a temporary password, which also overwrites the password entry in the database.
As an example the user clicks a forgot password link, it takes them to a page asking for only their email
they click reset.
This fires a server action that has a
Database Connection
Database Single Query (to get the user ID)
Database Update (Updates the password field to a TIMESTAMP with SHA512 and the sitewide used SALT)
Mail (With the plaintext TIMESTAMP as their new password, and a query parameter set on the clickable link of https://www.example.com/login.aspx?reset=true
On the login script have a condition that looks for reset=true
which then opens a modal window or something on successful login that only has a new password
and confirm new password
field, remove all close buttons from the modal, and in the modal options make sure clicking in the blank space also can not force close it, therefore the only way to close the modal is to enter the new passwords with validation and click the Update Password button.
I hope that makes sense, good luck, let me know how it goes.