summaryrefslogtreecommitdiff
path: root/internal/handlers/handler_user_info.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2020-04-05 22:37:21 +1000
committerGitHub <noreply@github.com>2020-04-05 22:37:21 +1000
commit8aade7f40e00e7dc13cd32edcb105cc77ee0100b (patch)
tree9689c2a515849c234e7892c811688e6eb993fb0f /internal/handlers/handler_user_info.go
parent9800421b88a07cc8287acee39ddf9c26ec38f9af (diff)
[MISC] Update durations to notation format and housekeeping (#824)
* added regulation validator * made regulations find_time and ban_time values duration notation strings * added DefaultRegulationConfiguration for the validator * made session expiration and inactivity values duration notation strings * TOTP period does not need to be converted because adjustment should be discouraged * moved TOTP defaults to DefaultTOTPConfiguration and removed the consts * arranged the root config validator in configuration file order * adjusted tests for the changes * moved duration notation docs to root of configuration * added references to duration notation where applicable * project wide gofmt and goimports: * run gofmt * run goimports -local github.com/authelia/authelia -w on all files * Make jwt_secret error uniform and add tests * now at 100% coverage for internal/configuration/validator/configuration.go
Diffstat (limited to 'internal/handlers/handler_user_info.go')
-rw-r--r--internal/handlers/handler_user_info.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/handlers/handler_user_info.go b/internal/handlers/handler_user_info.go
index e77914efc..d03de6a1e 100644
--- a/internal/handlers/handler_user_info.go
+++ b/internal/handlers/handler_user_info.go
@@ -5,11 +5,12 @@ import (
"strings"
"sync"
+ "github.com/sirupsen/logrus"
+
"github.com/authelia/authelia/internal/authentication"
"github.com/authelia/authelia/internal/middlewares"
"github.com/authelia/authelia/internal/storage"
"github.com/authelia/authelia/internal/utils"
- "github.com/sirupsen/logrus"
)
func loadInfo(username string, storageProvider storage.Provider, preferences *UserPreferences, logger *logrus.Entry) []error {