[+] Automatically check login status on start

This commit is contained in:
Hykilpikonna
2021-01-22 16:54:20 -05:00
parent b1e11b8bc2
commit 9bb4d0ccf1
+8
View File
@@ -15,9 +15,17 @@ class AccountViewController: UIViewController
// For instance references
static var this: AccountViewController!
/**
Called when the user switch to this tab
*/
override func viewDidLoad()
{
// Static instance reference
AccountViewController.this = self
// Check if already registered/logged in
if localStorage["id"] != nil { login() }
super.viewDidLoad()
}