diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 09:29:59 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-18 09:29:59 +0100 |
commit | ad4a8a1cca1049f600ebcdce9260c1021cd821a5 (patch) | |
tree | ca8ffba899b024d56d1bd7846f61aecae0821c82 /server/models/pod.js | |
parent | 5d67f289df4a68e35ad7e0af3c601c7db0dc7586 (diff) | |
download | PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.tar.gz PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.tar.zst PeerTube-ad4a8a1cca1049f600ebcdce9260c1021cd821a5.zip |
Add email to users
Diffstat (limited to 'server/models/pod.js')
-rw-r--r-- | server/models/pod.js | 5 |
1 files changed, 4 insertions, 1 deletions
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) { | |||
35 | }, | 35 | }, |
36 | email: { | 36 | email: { |
37 | type: DataTypes.STRING(400), | 37 | type: DataTypes.STRING(400), |
38 | allowNull: false | 38 | allowNull: false, |
39 | validate: { | ||
40 | isEmail: true | ||
41 | } | ||
39 | } | 42 | } |
40 | }, | 43 | }, |
41 | { | 44 | { |