Skip to content

Commit

Permalink
WIP - recaptcha - temp
Browse files Browse the repository at this point in the history
  • Loading branch information
sigismondm committed Jul 2, 2015
1 parent a853d09 commit c564596
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = function() {
return {
'postgresql-store': pgConfig(),
elasticsearch: esConfig(),
'recaptcha_secret_key': process.env.RECAPTCHA_SECRET_KEY,
transport: {
type: 'web',
web: {
Expand Down
4 changes: 3 additions & 1 deletion config/development.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ export POSTGRES_NAME=cp-users-development
export POSTGRES_USERNAME=platform
export POSTGRES_PASSWORD=QdYx3D5y

export ES_INDEX=cp-users-development
export ES_INDEX=cp-users-development

export RECAPTCHA_SECRET_KEY=6LfVKQgTAAAAAI3dhMSRsrTbFbx7cnGr4Fy2sn5_
4 changes: 2 additions & 2 deletions scripts/exec_on_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ function check_script {
function run_js {
JSFILE=$(get_abs_filename "$1") && shift
check_script "$JSFILE"
node "$JSFILE" $@
node --debug "$JSFILE" $@
}

function exec_js {
JSFILE=$(get_abs_filename "$1") && shift
check_script "$JSFILE"
exec node "$JSFILE" $@
exec node --debug "$JSFILE" $@
}
3 changes: 3 additions & 0 deletions users.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

var _ = require('lodash');
var async = require('async');
//var request

module.exports = function(options){
var seneca = this;
var plugin = 'cd-users';
var ENTITY_NS = 'sys/user';

console.log("#########options", options);

seneca.add({role: plugin, cmd: 'list'}, cmd_list);
seneca.add({role: plugin, cmd: 'register'}, cmd_register);
seneca.add({role: plugin, cmd: 'promote'}, cmd_promote);
Expand Down

0 comments on commit c564596

Please sign in to comment.