mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
little fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user