Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e7332 commit ac91c68Copy full SHA for ac91c68
src/http/controller/account.go
@@ -179,7 +179,8 @@ func (AccountController) Activate(ctx echo.Context) error {
179
// 自动登录
180
SetCookie(ctx, user.Username)
181
182
- return render(ctx, contentTpl, data)
+ // return render(ctx, contentTpl, data)
183
+ return ctx.Redirect(http.StatusSeeOther, "/balance")
184
}
185
186
// Login 登录
template/user/activate.html
@@ -17,7 +17,7 @@ <h2>激活账号出错了!</h2>
17
{{else}}
18
<div style="padding:30px 30px 50px 30px;">
19
<div style="color:#339502;font-size:22px;line-height: 2.5;">恭喜您激活成功!</div>
20
- 现在就去和大家分享你的Go经验吧!!<a href="/">Let's Go>></a>
+ 现在就去和大家分享你的经验吧!!<a href="/balance">Let's Go>></a>
21
</div>
22
{{end}}
23
0 commit comments