ViewController
class ViewController : UIViewController, UITextFieldDelegate, NetworkCheckObserver
The purpose of the ViewController
ViewController is to manage the View Controller Login Page hierarchy.
-
Undocumented
Declaration
Swift
@IBOutlet weak var username: UITextField!
-
Undocumented
Declaration
Swift
@IBOutlet weak var password: UITextField!
-
Undocumented
Declaration
Swift
@IBOutlet weak var submit_button: UIButton!
-
Undocumented
Declaration
Swift
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
-
Undocumented
Declaration
Swift
override func viewDidLoad()
-
Undocumented
Declaration
Swift
override func viewWillAppear(_ animated: Bool)
-
Undocumented
Declaration
Swift
override func viewWillDisappear(_ animated: Bool)
-
Declaration
Swift
@available(iOS 12.0, *) func statusDidChange(status: NWPath.Status)
-
Undocumented
Declaration
Swift
func alertNetwork()
-
Undocumented
Declaration
Swift
override var supportedInterfaceOrientations: UIInterfaceOrientationMask { get }
-
Undocumented
Declaration
Swift
@IBAction func submit(_ sender: Any)
-
Undocumented
Declaration
Swift
@objc func btnEyeAction(imageView: UIImageView)
-
Size and Place the eye icon in the password UITextField.
Declaration
Swift
func addBtnEye()
-
Undocumented
Declaration
Swift
func textFieldShouldReturn(_ textField: UITextField) -> Bool
-
Limit the textFields characters at 35.
Declaration
Swift
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool
-
Set the username and FIDO multipass verification in the preferences and perform a segue to AddFidoViewController.
Declaration
Swift
func loginDone()
-
Check if the user exist in database and if he has already register a FIDO multipass or not. If the user does not exist in the local database, he is added.
Declaration
Swift
func isFidoInBdd() -> Bool
Return Value
- true: The user has a fido token in the Database
- false: The user does not have a fido token in the Database or does not exist