Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion server/src/routes/auth.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ const roleSchema = z.preprocess(

const registerSchema = z.object({
email: z.string().trim().email(),
password: z.string().min(6),
password: z
.string()
.min(8, 'Password must be at least 8 characters')
.regex(/[A-Z]/, 'Password must contain at least 1 uppercase letter')
.regex(/[0-9]/, 'Password must contain at least 1 number')
.regex(/[!@#$%^&*]/, 'Password must contain at least 1 special character (!@#$%^&*)'),
displayName: z.string().trim().min(1).max(100).optional(),
name: z.string().trim().min(1).max(100).optional(),
role: roleSchema,
Expand Down
12 changes: 0 additions & 12 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion web/src/app/agora/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";

import ReadingProgressBar from "@/components/ReadingProgressBar";
import { useEffect, useState } from "react";
import Link from "next/link";
import { useParams } from "next/navigation";
Expand Down Expand Up @@ -111,6 +111,8 @@ export default function AgoraDraftDetailPage() {
}

return (
<>
<ReadingProgressBar />
<MainLayout>
<div className="max-w-4xl mx-auto space-y-6">
{/* Back link */}
Expand Down Expand Up @@ -198,6 +200,7 @@ export default function AgoraDraftDetailPage() {
)}
</div>
</MainLayout>
</>
);
}

Expand Down
4 changes: 3 additions & 1 deletion web/src/app/agora/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";

import ReadingProgressBar from "@/components/ReadingProgressBar";
import { useEffect, useState } from "react";
import { motion } from "framer-motion";
import { MainLayout } from "@/components/layout/MainLayout";
Expand Down Expand Up @@ -99,6 +99,7 @@ export default function AgoraPage() {
};

return (

<MainLayout>
<motion.div variants={container} initial="hidden" animate="show" className="space-y-8">
{/* Page Header */}
Expand Down Expand Up @@ -252,5 +253,6 @@ export default function AgoraPage() {
</div>
</motion.div>
</MainLayout>

);
}
1 change: 1 addition & 0 deletions web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Metadata } from "next";
import "./globals.css";
import { AmbientBackground } from "@/components/layout/AmbientBackground";


export const metadata: Metadata = {
title: "Writers' Pub — A Premium Ecosystem for Creative Minds",
description: "Connect writers, editors, and publishers in a structured ecosystem for writing, feedback, and publishing.",
Expand Down
Loading