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