Skip to content

Commit 65f2784

Browse files
committed
saml email fix
1 parent 6a7c82b commit 65f2784

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

spectrocloud/resource_sso.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,6 @@ func resourceSSO() *schema.Resource {
304304
errs = append(errs, fmt.Errorf("%q must not be empty", key))
305305
return
306306
}
307-
emailRegex := `^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$`
308-
matched, err := regexp.MatchString(emailRegex, v)
309-
if err != nil || !matched {
310-
errs = append(errs, fmt.Errorf("%q must be a valid email address", key))
311-
}
312307
return
313308
},
314309
},

0 commit comments

Comments
 (0)