Freeside:4:Documentation:Developer/FS/Password Mixin
From Freeside
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 changing the password.
- 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.
- _blowfishcrypt PASSWORD
- For internal use: takes PASSWORD and returns a new Authen::Passphrase::BlowfishCrypt object representing it.