[O] Warn user that they can't undo deleting account

This commit is contained in:
Hykilpikonna
2021-01-26 20:40:28 -05:00
parent 4231bc6da1
commit d797af3c57
+6 -1
View File
@@ -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