Password resets

This commit is contained in:
Harvey Tindall
2020-08-01 16:31:08 +01:00
parent 4e16f6fd48
commit c4d4b395d5
5 changed files with 130 additions and 0 deletions
+4
View File
@@ -197,6 +197,10 @@ func main() {
inviteDaemon := NewRepeater(time.Duration(60*time.Second), ctx)
go inviteDaemon.Run()
if ctx.config.Section("password_resets").Key("enabled").MustBool(false) {
ctx.StartPWR()
}
ctx.info.Println("Loading routes")
router := gin.New()