mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 23:00:53 -05:00
refac
This commit is contained in:
1 parent
9a669197c8
commit
84d0940da1
6 files changed
+39
-8
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { getContext } from 'svelte';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { updateUserPassword, userSignOut } from '$lib/apis/auths';
|
||||
import { getLogoutRedirectUrl, updateUserPassword, userSignOut } from '$lib/apis/auths';
|
||||
import SensitiveInput from '$lib/components/common/SensitiveInput.svelte';
|
||||
|
||||
const i18n = getContext('i18n');
|
||||
@@ -32,7 +32,7 @@
|
||||
});
|
||||
|
||||
localStorage.removeItem('token');
|
||||
location.href = signOutRes?.redirect_url ?? '/auth?logout=true';
|
||||
location.href = getLogoutRedirectUrl(signOutRes?.redirect_url);
|
||||
}
|
||||
|
||||
currentPassword = '';
|
||||
|
||||
Reference in new issue
Block a user