function handleErrors(err) {
                $scope.errors = {}

                const errorBody = _.get(err, 'data.body');

                if (errorBody) {
                  if (errorBody.fields) {

                    for (let key in errorBody.fields) {
                      $scope.errors[key] = errorBody.fields[key]
                    }
                  }
                  $scope.errorMessage = errorBody.message || '';
                } else {
                  $scope.errorMessage = "An unknown error has occured"
                }


                //console.log("SCOPE ERRORS",$scope.errors)
              }
This file contains all necessary Angular controller definitions for 'frontend.admin.login-history' module.

Note that this file should only contain controllers and nothing else.