Error: Password cannot be blank

14 posts by 4 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: February 6   (RSS)

By Davidpanter - January 22 - edited: January 22

HI Jeff, 

i cant remember exactly which file it was, LIB folder i believe, i found the line that was giving me the error, i commented it out, (it looks to be a secondary check thats failing for some reason), so commenting it out has stopped the error for me, 

i just searched the error specifically in my project folder , it came up with the Lib file, and commented it out. 

i have no idea if thats the right thing to do, but it works

UPDATE: the file was LIB\Password.php

line 44 : // $plaintext === '' => throw new InvalidArgumentException('Password cannot be blank'),

Hi All, 

We wanted to follow up with anyone else with this issue.  

We found the cause: when a user logs in, it automatically checks for any plaintext passwords in the database and encrypts them.  However, it wasn't coded to accept an empty 0-byte string.  This can happen if you import a user from another system or create a user account in a separate table and don't set the password.

David's temporary fix of commenting out the "Password cannot be blank" will work, and we've fixed this for the next version.

Logging in without specifying a password is impossible, so it's completely secure in every case.  

We often have multiple levels of safety checking, and in this case, we had one too many for the situation.

Thanks all!

Dave Edis - Senior Developer
interactivetools.com

Thanks everyone.

Jeff