move the database and mailer to own log sub dir, add all email change logic

This commit is contained in:
creations 2025-06-13 20:33:29 -04:00
parent ddd00e3f85
commit a783a0e663
Signed by: creations
GPG key ID: 8F553AA4320FC711
26 changed files with 808 additions and 225 deletions

View file

@ -0,0 +1,23 @@
import type { UserResponse } from "../base";
interface EmailChangeRequest {
newEmail: string;
}
interface EmailChangeData {
userId: string;
currentEmail: string;
newEmail: string;
requestedAt: number;
}
interface EmailChangeResponse {
code: number;
success: boolean;
error?: string;
message?: string;
user?: UserResponse;
cooldownRemaining?: number;
}
export type { EmailChangeRequest, EmailChangeData, EmailChangeResponse };

View file

@ -1,2 +1,3 @@
export * from "./info";
export * from "./password";
export * from "./email";

View file

@ -4,7 +4,6 @@ import type { UserResponse } from "../base";
interface UpdateInfoRequest {
username?: string;
displayName?: string | null;
email?: string;
}
interface UpdateInfoResponse extends BaseResponse {