Add support for account deletion

This commit is contained in:
Nariman Jelveh
2024-03-24 17:39:46 -07:00
parent 52d1bd1f03
commit d13ae6958c
8 changed files with 515 additions and 86 deletions
+1 -1
View File
@@ -1870,7 +1870,7 @@ window.initgui = async function(){
*/
$(document).on("logout", async function(event) {
// is temp user?
if(window.user && window.user.is_temp){
if(window.user && window.user.is_temp && !window.user.deleted){
const alert_resp = await UIAlert({
message: `<strong>Save account before logging out!</strong><p>You are using a temporary account and logging out will erase all your data.</p>`,
buttons:[