Add missed return after ctx.ServerError
(#31130)
This commit is contained in:
parent
cd7d1314fc
commit
b6f15c7948
5 changed files with 5 additions and 0 deletions
|
@ -831,6 +831,7 @@ func ActivateEmail(ctx *context.Context) {
|
|||
if email := user_model.VerifyActiveEmailCode(ctx, code, emailStr); email != nil {
|
||||
if err := user_model.ActivateEmail(ctx, email); err != nil {
|
||||
ctx.ServerError("ActivateEmail", err)
|
||||
return
|
||||
}
|
||||
|
||||
log.Trace("Email activated: %s", email.Email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue