[+] Implement logout and display

This commit is contained in:
Hykilpikonna
2021-01-22 17:26:27 -05:00
parent a505a8e553
commit e32b3a4db9
+6 -2
View File
@@ -127,6 +127,8 @@ class ManageVC: UIViewController
{ {
static var this: ManageVC! static var this: ManageVC!
@IBOutlet weak var lUsername: UILabel!
@IBOutlet weak var lJoinDate: UILabel!
/** /**
Called when the user switched to the account tab (whether the view container is hidden or not) Called when the user switched to the account tab (whether the view container is hidden or not)
@@ -143,7 +145,9 @@ class ManageVC: UIViewController
*/ */
func display() func display()
{ {
lUsername.text = localStorage.string(forKey: "name")
// TODO: Correct join date
lJoinDate.text = localStorage.string(forKey: "id")
} }
/** /**
@@ -151,6 +155,6 @@ class ManageVC: UIViewController
*/ */
@IBAction func logout(_ sender: Any) @IBAction func logout(_ sender: Any)
{ {
AccountViewController.this.logout()
} }
} }