fix: make password changing actually work

This commit is contained in:
Xyphyn committed 2023-09-26 18:36:09 -07:00
1 parent 76f22dab5c
commit ac147086f1
4 files changed
+24 -19

No files matched your search

-13
View File
@@ -227,19 +227,6 @@ instance.subscribe(async (i) => {
} catch (e) {}
})
export function updateJwt(id: number, newJwt: string) {
const pd = get(profileData)
let prof = pd.profiles.find((p) => p.id == id)
if (!prof) return
prof = serializeUser(prof)
prof.jwt = newJwt
profileData.update((p) => ({ ...p, profile: id }))
profile.update(() => prof)
}
export async function setUserID(id: number) {
const pd = get(profileData)
if (id == -1) {