larvituser
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -27,3 +27,3 @@ 'use strict'; | ||
if ( ! data.global.formFields.password) { | ||
if (data.global.formFields.disableLogin === 'yes') { | ||
newPassword = false; | ||
@@ -112,3 +112,3 @@ } else { | ||
// Update password | ||
if (data.global.formFields.password.trim() !== '') { | ||
if (data.global.formFields.password.trim() !== '' || newPassword === false) { | ||
tasks.push(function(cb) { | ||
@@ -157,2 +157,3 @@ if (data.global.errors.length) { cb(); return; } | ||
'username': user.username, | ||
'passwordIsFalse': user.passwordIsFalse, | ||
'fields': user.fields | ||
@@ -159,0 +160,0 @@ }; |
@@ -364,2 +364,3 @@ 'use strict'; | ||
' u.username,\n' + | ||
' u.password,\n' + | ||
' uf.uuid AS fieldUuid,\n' + | ||
@@ -388,2 +389,8 @@ ' uf.name AS fieldName,\n' + | ||
if (rows[0].password === '') { | ||
returnObj.passwordIsFalse = true; | ||
} else { | ||
returnObj.passwordIsFalse = false; | ||
} | ||
for (let i = 0; rows[i] !== undefined; i ++) { | ||
@@ -390,0 +397,0 @@ const row = rows[i]; |
{ | ||
"name": "larvituser", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Mikael 'Lilleman' Göransson", |
Sorry, the diff of this file is not supported yet
62246
1555