LoginRegisterViewController

Undocumented

  • Checks wether both textfields (E-Mail & Password) are filled in with correct style. If this is ok, the keyboard will be hide and the registration request is started

    :param: sender UIButton which triggers the function

    :returns: No return value

    Declaration

    Swift

    @IBAction func registerButtonPressed(_ sender: UIButton)
  • Undocumented

  • Undocumented

  • Opens the internal WebView to show additional Information which isn’t stored in the app.

    :param: sender UIButton which triggers the function

    :returns: No return value

    Declaration

    Swift

    @IBAction func whatIsBreakOutButtonPressed(_ sender: UIButton)
  • Starts a registration request to the backend-API. It sends the E-Mail and password as a JSON-Body with a POST request tu the ’/user/’ endpoint of the REST-API. If the request is successful, the login function is triggered. In case of an error, the error will be presented to the user in a popover.

    :param: No parameters

    :returns: No return value

    Declaration

    Swift

    func startRegistrationRequest()
  • Starts a login request to the backend-API through a OAuth Request. If it is successful, the credentials with accessToken will be send as response.

    :param: No parameters

    :returns: No return value

    Declaration

    Swift

    func startLoginRequest()