I think I have found a bug in the chkpass support for Pg in
Rose::DB::Object.  If you load an existing row from the database, then
make a change to a column (not the password column), and then save the
changes, the password field will be blanked out.

my $user = User->new( id => 1 );
$user->load;
$user->first_name('cees');
$user->save;
# password column will be blank in DB after the save action

I think this is probably due to the way the chkpass support has been
added, since a call to $user->password is supposed to return the
unencrypted password (which is only available when you first create
the entry).  Calling $user->password_encrypted returns you the
encrypted password, wheras calling $user->password gets you nothing.

I am not sure how best to deal with this issue, so I haven't looked at
fixing it.

Cheers,

Cees


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to