DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: 17130041a660aef12d4cacdf1203f56d71d5332a tixe/handlers/login.go -rw-r--r-- 323 bytes
17130041Jonni Liljamo feat: tailwind from 3.3.2 to 3.3.3 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package handlers

import (
	"net/http"
	"tixe/config"
	"tixe/template"

	"github.com/gin-gonic/gin"
)

func Login(c *gin.Context) {
	html := template.TmplEngine.Render("login.tmpl", map[string]interface{}{"notauthed": true, "oidcloginvisual": config.TixeConfig.OidcLoginVisual})
	c.Data(http.StatusOK, "text/html", html)
}