Sign up and login work

This commit is contained in:
Torkel Ödegaard
2015-01-21 09:52:40 +01:00
parent 4786e0f882
commit 3c8c53194f
7 changed files with 24 additions and 43 deletions
+4 -3
View File
@@ -8,9 +8,10 @@ import (
m "github.com/torkelo/grafana-pro/pkg/models"
)
type LoginResult struct {
Status string `json:"status"`
User CurrentUser `json:"user"`
type LoginCommand struct {
User string `json:"user" binding:"Required"`
Password string `json:"password" binding:"Required"`
Remember bool `json:"remember"`
}
type CurrentUser struct {