[O] Warn user that they can't undo deleting account
This commit is contained in:
@@ -216,7 +216,11 @@ class ManageVC: UIViewController
|
|||||||
*/
|
*/
|
||||||
@IBAction func deleteAccount(_ sender: Any)
|
@IBAction func deleteAccount(_ sender: Any)
|
||||||
{
|
{
|
||||||
sendReq(APIs.delete, title: "Deleting...")
|
enterPin("Are you sure?", "Enter 1234 to continue deleting your account, you can't undo this.")
|
||||||
|
{
|
||||||
|
guard $0 == "1234" else { return }
|
||||||
|
|
||||||
|
self.sendReq(APIs.delete, title: "Deleting...")
|
||||||
{
|
{
|
||||||
print("Deleted! \($0)")
|
print("Deleted! \($0)")
|
||||||
self.msg("Deleted!", "You are erased from our database, you no longer exist.")
|
self.msg("Deleted!", "You are erased from our database, you no longer exist.")
|
||||||
@@ -224,6 +228,7 @@ class ManageVC: UIViewController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Family view controller that displays family info or create/join family buttons
|
Family view controller that displays family info or create/join family buttons
|
||||||
|
|||||||
Reference in New Issue
Block a user