whitelist에서 email과 platform을 모두 비교

This commit is contained in:
2023-07-07 15:32:54 +09:00
parent 5abb3fd2b7
commit 22ec115b35
4 changed files with 11 additions and 65 deletions

View File

@ -429,7 +429,7 @@ func (mg *Maingate) prepare(context context.Context) (err error) {
return nil
}
func whitelistKey(email string) string {
func whitelistKey(email string, platform string) string {
if strings.HasPrefix(email, "*@") {
// 도메인 전체 허용
return email[2:]