 import UIKit
 import LocalAuthentication
 
-class LoginViewController: LoginSignupValidationMasterView, AppLifeCylcleConsumer {
-    var loginAttempts:Int = 1
-    fileprivate var totalAttempts : Int = 3
+class LoginViewController: LoginSignupValidationMasterView {
+    
     @IBOutlet weak var bottomSpaceContraint: NSLayoutConstraint!
     @IBOutlet var pinResetButton: UIButton!
     @IBOutlet var closeButton: UIBarButtonItem?
     @IBOutlet var accountBlockedTitle: UILabel?
+    
+    var loginAttempts:Int = 1
+    var maxAttempts : Int = 3
+    
     let touchIdButton = UIButton(type: UIButtonType.custom)
     
+    //MARK: - view life cycle
     override func viewDidLoad() {
         super.viewDidLoad()
         AppDelegate.instance = self

            self.pinResetButton.setTitleColor(UIColor.yiGrapeColor(), for: UIControlState())
        }
        pinResetButton.layer.cornerRadius = pinResetButton.frame.size.height/2
        //        pinResetButton.layer.borderWidth = 1
    }
    
    @IBAction func pinResetTapped(_ sender: UIButton) {
        weak var tracker = GAI.sharedInstance().defaultTracker
        tracker!.send(GAIDictionaryBuilder.createEvent(withCategory: "ui_action", action: "pinResetTapped", label: "Reset the pin button pressed", value: nil).build() as! [AnyHashable: Any])
        
        self.pinResetTapped()
    }
    

    @IBAction func backToSettings(_ sender: AnyObject) {
        weak var tracker = GAI.sharedInstance().defaultTracker
        tracker!.send(GAIDictionaryBuilder.createEvent(withCategory: "ui_action", action: "backToSettings", label: "Back to settings from pinreset", value: nil).build() as! [AnyHashable: Any])
        self.navigationController?.dismiss(animated: true, completion: nil)
    }
}

