From eaa66a0d6b6830098d35b370e7a61b438e32ebd8 Mon Sep 17 00:00:00 2001 From: Juan Diaz Date: Mon, 27 Nov 2017 13:18:45 +0100 Subject: [PATCH] Change type 'email' to type 'string' --- README.md | 2 +- lib/models/auth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 852061b..ce21565 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Local auth adds the following attributes onto the Auth model ```js email: { - type: 'email', + type: 'string', unique: true }, password: { diff --git a/lib/models/auth.js b/lib/models/auth.js index 1082b89..41610a6 100644 --- a/lib/models/auth.js +++ b/lib/models/auth.js @@ -5,7 +5,7 @@ var _ = require('lodash'); exports.attributes = function(attr){ var template = { email: { - type: 'email', + type: 'string', unique: true }, password: {