<% 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_Mixin

NAME

FS::Password_Mixin - Object methods for accounts that have passwords governed by the password policy.

METHODS

is_password_allowed PASSWORD

Checks the password against the system password policy. Returns an error message on failure, an empty string on success.

This MUST NOT be called from check(). It should be called by the office UI, self-service ClientAPI, or other user-interactive code that processes a password change, and only if the user has taken some action with the intent of setting the password.

password_svc_check

Override to run additional service-specific password checks.

password_history_key

Returns the name of the field in FS::password_history that's the foreign key to this table.

insert_password_history

Creates a FS::password_history record linked to this object, with its current password.

delete_password_history;

Removes all password history records attached to this object, in preparation to delete the object.

_blowfishcrypt PASSWORD

For internal use: takes PASSWORD and returns a new Authen::Passphrase::BlowfishCrypt object representing it.

CLASS METHODS

pw_set

Returns the list of characters allowed in random passwords (from the password-generated-characters config).

SEE ALSO

FS::password_history

<% include ('/elements/footer.html' ) %>