mirror of
https://github.com/gogs/gogs.git
synced 2026-01-14 11:22:19 +01:00
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
21 lines
613 B
Go
21 lines
613 B
Go
package dev
|
|
|
|
import (
|
|
"gogs.io/gogs/internal/conf"
|
|
"gogs.io/gogs/internal/context"
|
|
"gogs.io/gogs/internal/database"
|
|
)
|
|
|
|
func TemplatePreview(c *context.Context) {
|
|
c.Data["User"] = database.User{Name: "Unknown"}
|
|
c.Data["AppName"] = conf.App.BrandName
|
|
c.Data["AppVersion"] = conf.App.Version
|
|
c.Data["AppURL"] = conf.Server.ExternalURL
|
|
c.Data["Code"] = "2014031910370000009fff6782aadb2162b4a997acb69d4400888e0b9274657374"
|
|
c.Data["ActiveCodeLives"] = conf.Auth.ActivateCodeLives / 60
|
|
c.Data["ResetPwdCodeLives"] = conf.Auth.ResetPasswordCodeLives / 60
|
|
c.Data["CurDbValue"] = ""
|
|
|
|
c.Success(c.Params("*"))
|
|
}
|