% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::password_history - Object methods for password_history records
use FS::password_history;
$record = new FS::password_history \%hash;
$record = new FS::password_history { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::password_history object represents a current or past password used by a login account, employee, or other account managed within Freeside. FS::password_history inherits from FS::Record. The following fields are currently supported:
Plus one of the following foreign keys:
Creates a new password history record. To add the record to the database, see "insert".
Checks all fields to make sure this is a valid password history record. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Returns the object that's using this password.
Returns true if PASSWORD (plaintext) is the same as the one stored in the history record, false if not.