From e9196bb249535ed59e05bad32991dbb9eb0d0b6a Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Fri, 22 Jan 2021 17:44:19 -0500 Subject: [PATCH 01/12] [-] Remove backup features and add default avatar --- ProjectClock/Base.lproj/Main.storyboard | 45 +++++++------------------ 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/ProjectClock/Base.lproj/Main.storyboard b/ProjectClock/Base.lproj/Main.storyboard index 5eaf6d5..f86c561 100644 --- a/ProjectClock/Base.lproj/Main.storyboard +++ b/ProjectClock/Base.lproj/Main.storyboard @@ -690,13 +690,13 @@ - + - - + + @@ -728,41 +728,17 @@ - - - - - - - - - - - - - - - - From 7435c0434889a9264dab4026f62a6228faca9e97 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Fri, 22 Jan 2021 18:13:36 -0500 Subject: [PATCH 12/12] [+] Implement delete button --- ProjectClock/AccountViewController.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ProjectClock/AccountViewController.swift b/ProjectClock/AccountViewController.swift index e6b39b6..51a9bc8 100644 --- a/ProjectClock/AccountViewController.swift +++ b/ProjectClock/AccountViewController.swift @@ -168,6 +168,11 @@ class ManageVC: UIViewController */ @IBAction func deleteAccount(_ sender: Any) { - + sendReq(APIs.delete, title: "Deleting...") + { + print("Deleted! \($0)") + self.msg("Deleted!", "You are erased from our database, you no longer exist.") + self.logout(sender) + } } }