Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cf1d66d07e | |||
| 62662bb79c | |||
| c0fb34fa50 | |||
| 68f6ab2e6c |
@@ -1,6 +1,20 @@
|
|||||||
<a name="readme-top"></a>
|
<a name="readme-top"></a>
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
# [1.0.0-beta.23](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2025-02-24)
|
||||||
|
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
* **auth**: Update email verification logic to use domain suffix check ([62662bb](https://github.com/perfect-panel/ppanel-web/commit/62662bb))
|
||||||
|
|
||||||
|
# [1.0.0-beta.22](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2025-02-23)
|
||||||
|
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
* **locales**: Removed language file import to clean up unnecessary language support ([68f6ab2](https://github.com/perfect-panel/ppanel-web/commit/68f6ab2))
|
||||||
|
|
||||||
# [1.0.0-beta.21](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2025-02-23)
|
# [1.0.0-beta.21](https://github.com/perfect-panel/ppanel-web/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2025-02-23)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default function RegisterForm({
|
|||||||
|
|
||||||
const handleCheckUser = async (email: string) => {
|
const handleCheckUser = async (email: string) => {
|
||||||
try {
|
try {
|
||||||
if (!auth.email.enable_verify) return true;
|
if (!auth.email.enable_domain_suffix) return true;
|
||||||
const domain = email.split('@')[1];
|
const domain = email.split('@')[1];
|
||||||
const isValid = auth.email?.domain_suffix_list.split('\n').includes(domain || '');
|
const isValid = auth.email?.domain_suffix_list.split('\n').includes(domain || '');
|
||||||
return isValid;
|
return isValid;
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ export default getRequestConfig(async () => {
|
|||||||
const locale = cookieLocale || defaultLocale || NEXT_PUBLIC_DEFAULT_LANGUAGE;
|
const locale = cookieLocale || defaultLocale || NEXT_PUBLIC_DEFAULT_LANGUAGE;
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
'language': (await import(`./${locale}/language.json`)).default,
|
|
||||||
'menu': (await import(`./${locale}/menu.json`)).default,
|
'menu': (await import(`./${locale}/menu.json`)).default,
|
||||||
'auth': (await import(`./${locale}/auth.json`)).default,
|
'auth': (await import(`./${locale}/auth.json`)).default,
|
||||||
'common': (await import(`./${locale}/common.json`)).default,
|
'common': (await import(`./${locale}/common.json`)).default,
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default function RegisterForm({
|
|||||||
|
|
||||||
const handleCheckUser = async (email: string) => {
|
const handleCheckUser = async (email: string) => {
|
||||||
try {
|
try {
|
||||||
if (!auth.email.enable_verify) return true;
|
if (!auth.email.enable_domain_suffix) return true;
|
||||||
const domain = email.split('@')[1];
|
const domain = email.split('@')[1];
|
||||||
const isValid = auth.email?.domain_suffix_list.split('\n').includes(domain || '');
|
const isValid = auth.email?.domain_suffix_list.split('\n').includes(domain || '');
|
||||||
return isValid;
|
return isValid;
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ export default getRequestConfig(async () => {
|
|||||||
const locale = cookieLocale || defaultLocale || NEXT_PUBLIC_DEFAULT_LANGUAGE;
|
const locale = cookieLocale || defaultLocale || NEXT_PUBLIC_DEFAULT_LANGUAGE;
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
language: (await import(`./${locale}/language.json`)).default,
|
|
||||||
menu: (await import(`./${locale}/menu.json`)).default,
|
menu: (await import(`./${locale}/menu.json`)).default,
|
||||||
auth: (await import(`./${locale}/auth.json`)).default,
|
auth: (await import(`./${locale}/auth.json`)).default,
|
||||||
common: (await import(`./${locale}/common.json`)).default,
|
common: (await import(`./${locale}/common.json`)).default,
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ppanel-web",
|
"name": "ppanel-web",
|
||||||
"version": "1.0.0-beta.21",
|
"version": "1.0.0-beta.23",
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://github.com/perfect-panel/ppanel-web",
|
"homepage": "https://github.com/perfect-panel/ppanel-web",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|||||||
Reference in New Issue
Block a user