From 811bcb605125354b2e43fa20608bdb9ae879f103 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 27 Jun 2021 21:27:54 +0200 Subject: [PATCH] Added struct for expires time --- modules/config/config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/config/config.go b/modules/config/config.go index d34c159..6b74f04 100644 --- a/modules/config/config.go +++ b/modules/config/config.go @@ -38,11 +38,16 @@ type rabbitmq struct { } type settings struct { - ExpiredTime int DefaultLanguageId int + Expires settingsExpires `toml:"expires"` Lengths settingsLengths `toml:"lengths"` } +type settingsExpires struct { + UserSession int + UserActivation int +} + type settingsLengths struct { UsernameMinLen int UsernameMaxLen int