fix auth/oauth

This commit is contained in:
les
2020-01-30 23:43:58 +01:00
parent c6e4569009
commit 465f2f3210
9 changed files with 55 additions and 36 deletions

View File

@@ -9,6 +9,10 @@ module.exports = (sequelize, DataTypes) => {
email: {
type: DataTypes.STRING,
unique: { msg: 'error.email_taken' },
validate: {
isEmail: true,
notEmpty: true
},
index: true,
allowNull: false
},