We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Model Users not return Password

Hi! I created a model Users extending \Phalcon\Mvc\Model.

User with uID = 3 has a password hash 0015dd9a4b6a1b0e76699290c2caa03c.

Method $user = Users::findFirst(3); returns this user, but, password = d41d8cd98f00b204e9800998ecf8427e

d41d8cd98f00b204e9800998ecf8427e == md5('NULL')

Problem is only with the 'password' field

WTF?



3.5k
edited Jul '14

UPD: change field name from 'password' to 'passwordHash' - it's working! WTF?