magento-hackathon/Magento-Two-factor-Authentication

View on GitHub
src/app/code/community/MageHackDay/TwoFactorAuth/sql/twofactorauth_setup/install-0.1.0.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/** @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;
$installer->startSetup();

// Add reset password link token column
$installer->getConnection()->addColumn($installer->getTable('admin/user'), 'twofactor_token', array(
    'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
    'comment' => 'Google Authenticator Token'
));

$installer->endSetup();