<<

NAME

pf::sms_activation

SUBROUTINES

sms_activation_db_prepare

sms_carrier_view_all

add - add an sms activation record to the database

invalidate_code - invalidate all unverified PIN codes for a given mac and phone

_generate_activation_code - generate proper PIN code. Created to encapsulate flexible hash types.

_unpack_activation_code - grab the hash-format and the activation hash out of the activation code

Returns a list of: hash version, hash

modify_status - update the status of a given email activation record

view_by_code - view an SMS activation record by activation code. Returns an hashref

find_unverified_code - find an unused activation record by doing a LIKE in the code, returns an hashref

create - create a new PIN code

Returns the PIN code

send_sms - Send SMS with activation code

sms_activation_create_send - Create and send PIN code

The attribute %info is only meant to be used for debugging purposes.

validate_code

Return the validated mac address or undef

AUTHOR

Inverse inc. <info@inverse.ca>

COPYRIGHT

Copyright (C) 2005-2013 Inverse inc.

LICENSE

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.

<<