|
@@ -1366,8 +1366,9 @@ func SignUpPost(ctx *context.Context, cpt *captcha.Captcha, form auth.RegisterFo |
|
|
} |
|
|
} |
|
|
log.Trace("Account created: %s", u.Name, ctx.Data["MsgID"]) |
|
|
log.Trace("Account created: %s", u.Name, ctx.Data["MsgID"]) |
|
|
|
|
|
|
|
|
log.Info("enter here, and form.InvitaionCode =" + form.InvitaionCode) |
|
|
|
|
|
if form.InvitaionCode != "" { |
|
|
|
|
|
|
|
|
invitationCode := ctx.Query("invitation_code") |
|
|
|
|
|
log.Info("enter here, and form.InvitaionCode =" + invitationCode) |
|
|
|
|
|
if invitationCode != "" { |
|
|
RegisteUserByInvitaionCode(form, u.ID) |
|
|
RegisteUserByInvitaionCode(form, u.ID) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|