larvituser
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -67,3 +67,3 @@ 'use strict'; | ||
tasks.push(function(cb) { | ||
if (data.global.errors.length) { cb(); return; } | ||
if (data.global.errors.length) { return cb(); } | ||
@@ -112,3 +112,3 @@ userLib.create(data.global.formFields.username, newPassword, userFields, function(err, result) { | ||
if (data.global.errors.length) { cb(); return; } | ||
if (data.global.errors.length) { return cb(); } | ||
@@ -121,3 +121,3 @@ user.setUsername(data.global.formFields.username.trim(), cb); | ||
tasks.push(function(cb) { | ||
if (data.global.errors.length) { cb(); return; } | ||
if (data.global.errors.length) { return cb(); } | ||
@@ -130,3 +130,3 @@ user.setPassword(newPassword, cb); | ||
tasks.push(function(cb) { | ||
if (data.global.errors.length) { cb(); return; } | ||
if (data.global.errors.length) { return cb(); } | ||
@@ -137,5 +137,8 @@ user.replaceFields(userFields, cb); | ||
tasks.push(function(cb) { | ||
if (data.global.errors.length) { cb(); return; } | ||
if (data.global.errors.length) { return cb(); } | ||
data.global.messages = ['Saved']; | ||
req.session.data.nextCallData = {'global': {'messages': ['New user created']}}; | ||
res.statusCode = 302; | ||
res.setHeader('Location', '/adminUsers/edit?uuid=' + user.uuid); | ||
cb(); | ||
@@ -142,0 +145,0 @@ }); |
{ | ||
"name": "larvituser", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Mikael 'Lilleman' Göransson", |
75247
1961