Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ac91c68

Browse files
committed
激活成功后跳转到领取铜币页面
1 parent 29e7332 commit ac91c68

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/http/controller/account.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ func (AccountController) Activate(ctx echo.Context) error {
179179
// 自动登录
180180
SetCookie(ctx, user.Username)
181181

182-
return render(ctx, contentTpl, data)
182+
// return render(ctx, contentTpl, data)
183+
return ctx.Redirect(http.StatusSeeOther, "/balance")
183184
}
184185

185186
// Login 登录

template/user/activate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2>激活账号出错了!</h2>
1717
{{else}}
1818
<div style="padding:30px 30px 50px 30px;">
1919
<div style="color:#339502;font-size:22px;line-height: 2.5;">恭喜您激活成功!</div>
20-
现在就去和大家分享你的Go经验吧!!<a href="/">Let's Go>></a>
20+
现在就去和大家分享你的经验吧!!<a href="/balance">Let's Go>></a>
2121
</div>
2222
{{end}}
2323
</div>

0 commit comments

Comments
 (0)