diff --git a/app/scripts/controllers/users.coffee b/app/scripts/controllers/users.coffee index a8a9f59..df8166d 100644 --- a/app/scripts/controllers/users.coffee +++ b/app/scripts/controllers/users.coffee @@ -52,6 +52,7 @@ angular.module('angularCmsApp').controller('UsersCtrl', ($scope, DataService) -> #Add user to database $scope.addUser = (user) -> + delete user.password if user.password user.updated_at = new Date() DataService.save('users', user).then((data) -> $scope.getUsers() diff --git a/app/views/users.html b/app/views/users.html index c61b92b..d429f58 100755 --- a/app/views/users.html +++ b/app/views/users.html @@ -88,7 +88,7 @@
- +
diff --git a/config/config.json b/config/config.json index e3f5c29..ee1081f 100644 --- a/config/config.json +++ b/config/config.json @@ -4,7 +4,7 @@ "apiBase": "/api/v2", "version": "v2", "security": {"salt": "angular-cms"}, - "mongodb": "localhost/angular-cms", + "mongodb": "angularcms:angularcms@paulo.mongohq.com:10089/app19632340", "db": { "name": "angular-cms", "username": "amadmin", diff --git a/routes/rest.js b/routes/rest.js index a6b68b3..44e3fd4 100755 --- a/routes/rest.js +++ b/routes/rest.js @@ -41,8 +41,8 @@ var MESSAGES = { }; var DS = require('jps-ds').DS; var _ds = new DS({ - //host: 'angularcms:angularcms@paulo.mongohq.com:10089/app19632340', - host: 'localhost/angular-cms', + host: 'angularcms:angularcms@paulo.mongohq.com:10089/app19632340', + //host: 'localhost/angular-cms', models: { 'groups': { title: String,