Email validation working
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const Sequelize = require('sequelize');
|
||||
|
||||
const sequelize = new Sequelize(process.env.DB_DATABASE, process.env.DB_USERNAME, process.env.DB_PASSWORD, {
|
||||
host: '127.0.0.1',
|
||||
host: process.env.DB_HOSTADDR,
|
||||
dialect: 'mariadb',
|
||||
logging: false
|
||||
});
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = sequelize.define('accounts', {
|
||||
|
||||
hash: 'varchar(100)', //for passwords
|
||||
|
||||
expiry: {
|
||||
deletion: {
|
||||
type: 'DATETIME',
|
||||
allowNull: true,
|
||||
defaultValue: null
|
||||
|
||||
@@ -14,5 +14,5 @@ module.exports = sequelize.define('pendingSignups', {
|
||||
|
||||
hash: 'varchar(100)', //for passwords
|
||||
|
||||
verify: Sequelize.INTEGER(11)
|
||||
token: Sequelize.INTEGER(11)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user