From ad4a8a1cca1049f600ebcdce9260c1021cd821a5 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 18 Feb 2017 09:29:59 +0100 Subject: Add email to users --- server/models/pod.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/models/pod.js') diff --git a/server/models/pod.js b/server/models/pod.js index 575ebbc61..79afb737a 100644 --- a/server/models/pod.js +++ b/server/models/pod.js @@ -35,7 +35,10 @@ module.exports = function (sequelize, DataTypes) { }, email: { type: DataTypes.STRING(400), - allowNull: false + allowNull: false, + validate: { + isEmail: true + } } }, { -- cgit v1.2.3