@@ -123,6 +123,7 @@ func (app *appContext) AdminPage(gc *gin.Context) {
|
||||
"email_enabled": emailEnabled,
|
||||
"telegram_enabled": telegramEnabled,
|
||||
"discord_enabled": discordEnabled,
|
||||
"matrix_enabled": matrixEnabled,
|
||||
"notifications": notificationsEnabled,
|
||||
"version": version,
|
||||
"commit": commit,
|
||||
@@ -295,6 +296,7 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
|
||||
"langName": lang,
|
||||
"telegramEnabled": telegramEnabled,
|
||||
"discordEnabled": discordEnabled,
|
||||
"matrixEnabled": matrixEnabled,
|
||||
}
|
||||
if telegramEnabled {
|
||||
data["telegramPIN"] = app.telegram.NewAuthToken()
|
||||
@@ -302,6 +304,10 @@ func (app *appContext) InviteProxy(gc *gin.Context) {
|
||||
data["telegramURL"] = app.telegram.link
|
||||
data["telegramRequired"] = app.config.Section("telegram").Key("required").MustBool(false)
|
||||
}
|
||||
if matrixEnabled {
|
||||
data["matrixRequired"] = app.config.Section("matrix").Key("required").MustBool(false)
|
||||
data["matrixUser"] = app.matrix.userID
|
||||
}
|
||||
if discordEnabled {
|
||||
data["discordPIN"] = app.discord.NewAuthToken()
|
||||
data["discordUsername"] = app.discord.username
|
||||
|
||||
Reference in New Issue
Block a user