mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
little fix
This commit is contained in:
parent
496a3f32eb
commit
ad0a2d2016
@ -145,7 +145,7 @@ export const authOptions: NextAuthOptions = {
|
||||
};
|
||||
|
||||
export function getSession() {
|
||||
console.log('in........',)
|
||||
// console.log('in........',)
|
||||
return getServerSession(authOptions) as Promise<{
|
||||
user: {
|
||||
id: string;
|
||||
|
@ -88,6 +88,9 @@ export function isPinYin(input: string): number {
|
||||
|
||||
|
||||
export function isName(input: string): boolean {
|
||||
if (!input || input === "") {
|
||||
return false;
|
||||
}
|
||||
if (DENY_LIST.includes(input)) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user