I have a custom field in customer registration form which I want to add the value of it into a session variable called passcode. So far I have no success, what am I doing wrong?
<input type="text" name="passcode" id="passcode" value="" title="<?php echo $this->__('Passcode') ?>" class="input-text required-entry" />
Here is my observer
public function customerRegisterSuccess(Varien_Event_Observer $observer) {
$login = Mage::app()->getRequest()->getParams('passcode');
$session = Mage::getSingleton('customer/session');
$session->setPasscode($login);
}