1、实现超级管理员用户管理功能

2、实现超级管理员项目列表功能
3、实现项目成员列表功能
This commit is contained in:
Minho
2017-04-24 18:25:17 +08:00
parent d1b2c52124
commit 1afb119bde
29 changed files with 1152 additions and 105 deletions

View File

@@ -1,13 +1,13 @@
package controllers
import (
"fmt"
"time"
"github.com/lifei6671/godoc/conf"
"github.com/lifei6671/godoc/models"
"github.com/lifei6671/godoc/utils"
"github.com/astaxie/beego"
"github.com/astaxie/beego/logs"
)
// AccountController 用户登录与注册.
@@ -38,8 +38,8 @@ func (c *AccountController) Login() {
}
if c.Ctx.Input.IsPost() {
account := c.GetString("inputAccount")
password := c.GetString("inputPassword")
account := c.GetString("account")
password := c.GetString("password")
member,err := models.NewMember().Login(account,password)
@@ -49,7 +49,7 @@ func (c *AccountController) Login() {
c.JsonResult(0,"ok")
c.StopRun()
}else{
fmt.Println(err)
logs.Error("用户登录 =>",err)
c.JsonResult(500,"账号或密码错误",nil)
}