[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
+9 -4
View File
@@ -216,11 +216,16 @@ class ManageVC: UIViewController
*/
@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.")
{
print("Deleted! \($0)")
self.msg("Deleted!", "You are erased from our database, you no longer exist.")
self.logout(sender)
guard $0 == "1234" else { return }
self.sendReq(APIs.delete, title: "Deleting...")
{
print("Deleted! \($0)")
self.msg("Deleted!", "You are erased from our database, you no longer exist.")
self.logout(sender)
}
}
}
}