import v1.0.0-RC4 | 2009-05-20
This commit is contained in:
28
modules/default/forms/OpenidLoginForm.php
Normal file
28
modules/default/forms/OpenidLoginForm.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* @copyright Copyright (C) 2005-2009 Keyboard Monkeys Ltd. http://www.kb-m.com
|
||||
* @license http://creativecommons.org/licenses/BSD/ BSD License
|
||||
* @author Keyboard Monkey Ltd
|
||||
* @since CommunityID 0.9
|
||||
* @package CommunityID
|
||||
* @packager Keyboard Monkeys
|
||||
*/
|
||||
|
||||
class OpenIdLoginForm extends Zend_Form
|
||||
{
|
||||
public function init()
|
||||
{
|
||||
$openIdIdentity = new Zend_Form_Element_Text('openIdIdentity');
|
||||
translate('Username');
|
||||
$openIdIdentity->setLabel('Username')
|
||||
->setRequired(true);
|
||||
|
||||
$password = new Zend_Form_Element_Password('password');
|
||||
translate('Password');
|
||||
$password->setLabel('Password')
|
||||
->setRequired(true);
|
||||
|
||||
$this->addElements(array($openIdIdentity, $password));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user