usermngmt/config/config.go

28 lines
355 B
Go
Raw Normal View History

2021-12-07 07:28:52 +00:00
package config
2023-04-15 08:35:55 +00:00
import "time"
const (
MaximumLoginFailedTime = 5
LoginFailedBlockedDuration = time.Hour
)
2021-12-07 07:28:52 +00:00
type Configuration struct {
EmailIsUnique bool
PhoneNumberIsUnique bool
}
var (
c *Configuration
)
// Set ...
func Set(instance *Configuration) {
c = instance
}
// GetInstance ...
func GetInstance() *Configuration {
return c
}