Implemented email verification

This commit is contained in:
2024-04-12 13:52:16 +03:00
parent 78107d4ec7
commit b1ad7b5c3e
51 changed files with 604 additions and 213 deletions

View File

@@ -1,7 +1,8 @@
import { type ClassValue, clsx } from 'clsx'
import { twMerge } from 'tailwind-merge'
import { LC } from '@/config/locales'
import bcrypt from 'bcryptjs'
import { env as dotEnv } from 'process'
export function cn (...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
@@ -10,3 +11,11 @@ export function cn (...inputs: ClassValue[]) {
export function lc (locale: string) {
return LC.filter(lc => locale === lc.code)[0]
}
export function env (variable: string, defaultValue?: string | ''): string {
return (dotEnv[variable] ?? defaultValue ?? '')
}
export function tr (el: React.ReactNode, params: object) {
}