From 98caf9e091b190c4c02ad60e7044d910634e2a6e Mon Sep 17 00:00:00 2001 From: Joe Nelson Date: Fri, 13 Nov 2015 13:16:40 -0800 Subject: [PATCH] Light validation on email column --- schema-templates/blog.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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