email 不让修改!

This commit is contained in:
lealife
2015-10-10 14:53:50 +08:00
parent 70ee362cc8
commit 0438bbb414
3 changed files with 28 additions and 7 deletions

View File

@ -94,7 +94,7 @@ func (c User) ReSendActiveEmail() revel.Result {
}
// 修改Email发送激活邮箱
func (c User) UpdateEmailSendActiveEmail(email string) revel.Result {
func (c User) updateEmailSendActiveEmail(email, pwd string) revel.Result {
re := info.NewRe()
if(c.GetUsername() == "demo") {
re.Msg = "cannotUpdateDemo"
@ -193,4 +193,4 @@ func (c User) UpdateLeftIsMin(leftIsMin bool) revel.Result {
}
}
return c.RenderJson(re)
}
}