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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'weekly'
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
push:
branches:
- main

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"successComment": false,
"failComment": false
}
]
]
}
2 changes: 1 addition & 1 deletion app/api/auth/forgot-password/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function POST(req: Request) {
try {
await sendMail({
to: user.username,
subject: 'Your auth316 password has been reset',
subject: 'Your 2FA Authenticator password has been reset',
html: `<p>Your new password is: <strong>${newPassword}</strong></p>`,
});
} catch (error) {
Expand Down
6 changes: 3 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import 'react-toastify/dist/ReactToastify.css';
import ToastProvider from '@/components/toast-provider';

export const metadata: Metadata = {
title: 'Auth316 | 2FA Authenticator',
description: 'Auth316 2FA Authenticator App',
title: '2FA Authenticator',
description: '2FA Authenticator App',
generator: 'shaishab316',
keywords: ['auth316', '2fa', 'authenticator', 'shaishab316'],
keywords: ['2fa', 'authenticator', 'shaishab316'],
icons: {
icon: '/favicon.svg',
},
Expand Down
2 changes: 1 addition & 1 deletion components/authenticator/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const Header: React.FC<HeaderProps> = ({
</div>
<div className='flex flex-col'>
<h1 className='text-lg sm:text-xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent'>
Auth316
2FA Authenticator
</h1>
<span className='text-xs sm:text-sm font-medium text-gray-600'>
{currentUsername
Expand Down
4 changes: 2 additions & 2 deletions lib/sentmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ export const sendMail = async ({
try {
//? Send email
const { accepted } = await transporter.sendMail({
from: `"Auth316" <${user}>`,
from: `"2FA Authenticator" <${user}>`,
to,
subject,
html,
});

return accepted > 0;
return accepted.length > 0;
} catch {
return false;
}
Expand Down
Loading