allow multiple invitation code

This commit is contained in:
niubility000 2022-01-12 15:56:44 +08:00 committed by GitHub
parent 5c6ca29624
commit e0dd6bffe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ var signupHandler = func(w http.ResponseWriter, r *http.Request, d *data) (int,
}
if d.UseInvitationCode {
if d.InvitationCode!=info.InvitationCode{
if !strings.Contains(";"+d.InvitationCode+";", ";"+info.InvitationCode+";"){
return http.StatusUnauthorized, nil
}
}