func (c *LoginController) LoginPage() {
	if c.IsLogin() {
		c.RedirectForm()
		if !c.Ctx.Output.IsRedirect() {
			c.Ctx.Redirect(http.StatusSeeOther, c.LoginPath())
		}
		return
	}
	c.TplName = "pages/login/login.tpl"
	c.Data["Title"] = "Login"
}
LoginPage serves login page and redirects to root page if the user is allready logged in
package controllers
import (
	"net/http"
	"github.com/KeKsBoTer/socialloot/lib"
	"github.com/KeKsBoTer/socialloot/models"
)
type LoginController struct {
	AuthController
}