Skip to content

Commit 4f0ac85

Browse files
committed
added password reset & magic link auth options
1 parent 30afc3a commit 4f0ac85

File tree

51 files changed

+2746
-1354
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2746
-1354
lines changed

package-lock.json

Lines changed: 1212 additions & 653 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@auth/prisma-adapter": "^1.0.11",
13-
"@prisma/client": "^5.7.0",
12+
"@auth/prisma-adapter": "^1.5.0",
13+
"@prisma/client": "^5.11.0",
1414
"axios": "^1.6.2",
1515
"bcrypt": "^5.0.1",
16-
"date-fns": "^2.30.0",
16+
"date-fns": "^3.4.0",
1717
"gray-matter": "^4.0.3",
18-
"next": "^13.5.6",
18+
"next": "^14.1.3",
1919
"next-auth": "^4.24.5",
20-
"next-themes": "^0.2.1",
20+
"next-themes": "^0.3.0",
21+
"nodemailer": "^6.9.12",
2122
"prettier": "^3.1.0",
2223
"prettier-plugin-tailwindcss": "^0.5.7",
2324
"prisma": "^5.7.0",
@@ -32,13 +33,14 @@
3233
},
3334
"devDependencies": {
3435
"@types/bcrypt": "^5.0.2",
35-
"@types/node": "^20.10.2",
36+
"@types/node": "^20.11.27",
37+
"@types/nodemailer": "^6.4.14",
3638
"@types/prismjs": "^1.26.3",
37-
"@types/react": "^18",
39+
"@types/react": "^18.2.66",
3840
"@types/react-dom": "^18",
3941
"autoprefixer": "^10.0.1",
4042
"eslint": "^8",
41-
"eslint-config-next": "14.0.3",
43+
"eslint-config-next": "^14.1.3",
4244
"postcss": "^8",
4345
"tailwindcss": "^3.3.0",
4446
"typescript": "^5"

prisma/schema.prisma

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ model Session {
3939
}
4040

4141
model User {
42-
id String @id @default(cuid())
43-
name String?
44-
email String? @unique
45-
emailVerified DateTime?
46-
image String?
47-
password String?
48-
accounts Account[]
49-
sessions Session[]
42+
id String @id @default(cuid())
43+
name String?
44+
email String? @unique
45+
emailVerified DateTime?
46+
image String?
47+
password String?
48+
passwordResetToken String? @unique
49+
passwordResetTokenExp DateTime?
50+
accounts Account[]
51+
sessions Session[]
5052
}
5153

5254
model VerificationToken {
@@ -55,4 +57,4 @@ model VerificationToken {
5557
expires DateTime
5658
5759
@@unique([identifier, token])
58-
}
60+
}

public/images/404.svg

Lines changed: 7 additions & 7 deletions
Loading

public/images/footer/brands/ecommerce-html.svg

Lines changed: 1 addition & 1 deletion
Loading

public/images/footer/brands/tailwindtemplates.svg

Lines changed: 1 addition & 1 deletion
Loading

public/images/hero/brand.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from "react";
2+
import ForgotPassword from "@/components/Auth/ForgotPassword";
3+
import Breadcrumb from "@/components/Common/Breadcrumb";
4+
5+
const ForgotPasswordPage = () => {
6+
return (
7+
<>
8+
<Breadcrumb pageName="Forget Password" />
9+
<ForgotPassword />
10+
</>
11+
);
12+
};
13+
14+
export default ForgotPasswordPage;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from "react";
2+
import ResetPassword from "@/components/Auth/ResetPassword";
3+
import Breadcrumb from "@/components/Common/Breadcrumb";
4+
5+
const ResetPasswordPage = ({ params }: { params: { token: string } }) => {
6+
return (
7+
<>
8+
<Breadcrumb pageName="Reset Password" />
9+
<ResetPassword token={params.token} />
10+
</>
11+
);
12+
};
13+
14+
export default ResetPasswordPage;
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/app/blogs/[slug]/page.tsx renamed to src/app/(site)/blogs/[slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Props = {
1212
params: { slug: string };
1313
};
1414

15-
export async function generateMetadata({ params }) {
15+
export async function generateMetadata({ params }: Props) {
1616
const posts = getAllPosts(["title", "date", "excerpt", "coverImage", "slug"]);
1717
const post = getPostBySlug(params.slug, [
1818
"title",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)