mirror of
https://github.com/HeyPuter/puter.git
synced 2026-04-23 07:44:08 -05:00
Add support for account deletion
This commit is contained in:
+1
-1
@@ -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:[
|
||||
|
||||
Reference in New Issue
Block a user