Account stuff

This commit is contained in:
Torkel Ödegaard
2014-09-20 12:13:46 +02:00
parent cdabe50320
commit 40ff57d8c4
10 changed files with 42 additions and 24 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func (self *HttpServer) index(c *gin.Context) {
viewModel := &IndexDto{}
userAccount, _ := c.Get("userAccount")
if userAccount != nil {
viewModel.User.Login = userAccount.(*models.UserAccount).Login
viewModel.User.Login = userAccount.(*models.Account).Login
}
c.HTML(200, "index.html", viewModel)