From e0dd6bffe271bc23548a583962a4340ffb66d15d Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 12 Jan 2022 15:56:44 +0800 Subject: [PATCH] allow multiple invitation code --- http/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/auth.go b/http/auth.go index b5959f1e..f1299ad4 100644 --- a/http/auth.go +++ b/http/auth.go @@ -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 } }