[feat] admin impersonate user (#3741)

This commit is contained in:
Vlad Stan
2026-01-28 16:59:23 +01:00
committed by GitHub
parent b22f88b264
commit 631f4e8455
13 changed files with 359 additions and 19 deletions
@@ -60,5 +60,17 @@ window.app.component('lnbits-header', {
return 'User'
}
}
},
methods: {
async stopImpersonation() {
try {
await LNbits.api.stopImpersonation()
LNbits.utils.restoreLocalStorage('impersonation')
window.location = '/users'
} catch (e) {
console.warn(e)
LNbits.utils.notifyApiError(e)
}
}
}
})