V4.12.3 document (#5600)

* doc

* doc

* perf: log
This commit is contained in:
Archer
2025-09-07 20:55:14 +08:00
committed by GitHub
parent 3f9b0fa1d4
commit c4632a2222
10 changed files with 62 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "app",
"version": "4.12.2",
"version": "4.12.3",
"private": false,
"scripts": {
"dev": "next dev",

View File

@@ -4,6 +4,7 @@ import { UserAuthTypeEnum } from '@fastgpt/global/support/user/auth/constants';
import { getNanoid } from '@fastgpt/global/common/string/tools';
import { addSeconds } from 'date-fns';
import { addAuthCode } from '@fastgpt/service/support/user/auth/controller';
import { UserError } from '@fastgpt/global/common/error/utils';
export type preLoginQuery = {
username: string;
@@ -20,7 +21,7 @@ async function handler(
const { username } = req.query;
if (!username) {
return Promise.reject('username is required');
return Promise.reject(new UserError('username is required'));
}
const code = getNanoid(6);