pf::activation - module to view, query and manage pending activations
pf::activation contains the functions necessary to manage all aspects of pending activation: creation, deletion, activation, etc. It also includes utility methods generate activation codes and validate them.
Notice that this module doesn't export all its subs like our other modules do. This is an attempt to shift our paradigm towards calling with package names and avoid the double naming.
For ex: pf::activation::view() instead of pf::activation::activation_view()
Remove this note when it will be no longer relevant. ;)
TODO: This list is incomplete
view a an pending activation record, returns an hashref
view an pending activation record by activation code without hash-format. Returns an hashref
find an unused pending activation record by doing a LIKE in the code, returns an hashref
view an pending activation record by exact activation code (including hash format). Returns an hashref
add an pending activation record to the database
delete an pending activation record
update the status of a given pending activation record
invalidate all unverified activation codes for a given mac and contact_info
invalidate codes for mac
create a new activation code
Returns the activation code
generate proper activation code. Created to encapsulate flexible hash types.
grab the hash-format and the activation hash out of the activation code
Returns a list of: hash version, hash
Send an email with the activation code
Change the status of a given pending activation code to VERIFIED which means it can't be used anymore.
Create and send PIN code
Send SMS with activation code
Inverse inc. <info@inverse.ca>
Copyright (C) 2005-2015 Inverse inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.