Merge branch 'main' of interstellardevelopment.org:YasinOnm08/interstellar_ai

This commit is contained in:
YasinOnm08 2024-10-02 14:17:37 +02:00
commit 014658cfcb
3 changed files with 39 additions and 18 deletions

View file

@ -68,7 +68,7 @@ export const changePassword = async (usernameOrEmail: string, password: string,
export const getData = async (usernameOrEmail: string, password: string) => {
const data = {
action: "get_data",
action: "get_settings",
username: usernameOrEmail.includes('@') ? undefined : usernameOrEmail,
email: usernameOrEmail.includes('@') ? usernameOrEmail : undefined,
password,
@ -98,7 +98,7 @@ export const getName = async (usernameOrEmail: string, password: string): Promis
export const changeData = async (usernameOrEmail: string, password: string, newData: any) => {
const data = {
action: "change_data",
action: "change_settings",
username: usernameOrEmail.includes('@') ? undefined : usernameOrEmail,
email: usernameOrEmail.includes('@') ? usernameOrEmail : undefined,
password,