email: Add option to require on sign-up

for #172
This commit is contained in:
Harvey Tindall
2021-12-20 18:50:48 +00:00
parent 9fff5781f4
commit 0fd4f516b1
6 changed files with 32 additions and 1 deletions
+1
View File
@@ -358,6 +358,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
"telegramEnabled": telegram,
"discordEnabled": discord,
"matrixEnabled": matrix,
"emailRequired": app.config.Section("email").Key("required").MustBool(false),
}
if telegram {
data["telegramPIN"] = app.telegram.NewAuthToken()