]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/pod.js
Add email to users
[github/Chocobozzz/PeerTube.git] / server / models / pod.js
index 575ebbc61c693dd5dc65a14b5ad5162504171220..79afb737acbccdcc0827ff131cae6ad8c0dece5f 100644 (file)
@@ -35,7 +35,10 @@ module.exports = function (sequelize, DataTypes) {
       },
       email: {
         type: DataTypes.STRING(400),
-        allowNull: false
+        allowNull: false,
+        validate: {
+          isEmail: true
+        }
       }
     },
     {