allow multiple invitation code
This commit is contained in:
parent
5c6ca29624
commit
e0dd6bffe2
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user