fix: make password changing actually work
This commit is contained in:
1 parent
76f22dab5c
commit
ac147086f1
4 files changed
+24
-19
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user