diff --git a/schema-templates/blog.sql b/schema-templates/blog.sql index 4a23794bf..0788a6280 100644 --- a/schema-templates/blog.sql +++ b/schema-templates/blog.sql @@ -43,7 +43,7 @@ $$ LANGUAGE plpgsql; create table if not exists basic_auth.users ( - email text primary key, + email text primary key check ( email ~* '^.+@.+\..+$' ), pass text not null check (length(pass) < 512), role name not null check (length(role) < 512), verified boolean not null default false