Add forgot username/password endpoints that send emails, reset password endpoint will be done next

This commit is contained in:
2026-01-23 20:04:17 -07:00
parent 35d6c5b307
commit ceace4ad8c
9 changed files with 543 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jan 23, 2026 at 12:59 AM
-- Generation Time: Jan 24, 2026 at 03:03 AM
-- Server version: 12.1.2-MariaDB
-- PHP Version: 8.5.2
@@ -87,6 +87,20 @@ CREATE TABLE `loaderupdates` (
-- --------------------------------------------------------
--
-- Table structure for table `resetcodes`
--
CREATE TABLE `resetcodes` (
`id` bigint(20) NOT NULL,
`code` varchar(64) DEFAULT NULL,
`ip` varchar(255) DEFAULT NULL,
`timestamp` bigint(20) NOT NULL,
`usedTimestamp` bigint(20) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=COMPRESSED;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
@@ -144,6 +158,12 @@ ALTER TABLE `launcherversionmanifest`
ALTER TABLE `loaderupdates`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `resetcodes`
--
ALTER TABLE `resetcodes`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
@@ -166,6 +186,12 @@ ALTER TABLE `verifycodes`
ALTER TABLE `games`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `resetcodes`
--
ALTER TABLE `resetcodes`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--