DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: eebb5024003fe8e1fe1aec83ef22011b682d2d6c tixe/handlers/login.go -rw-r--r-- 254 bytes
eebb5024Jonni Liljamo feat: login and logout with oidc 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
package handlers

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

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

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