Skip to content

Commit

Permalink
added support for new register page (for 3.5.2) (WIP, privilege check…
Browse files Browse the repository at this point in the history
…s may not work correctly)
  • Loading branch information
Kousuke Ebihara committed Apr 20, 2010
1 parent 764b51d commit f1ee93f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
@@ -0,0 +1,8 @@
<?php

class RegisterBoxComponent extends sfComponent
{
public function execute($request)
{
}
}
8 changes: 8 additions & 0 deletions apps/pc_frontend/modules/OpenID/templates/_registerBox.php
@@ -0,0 +1,8 @@
<?php slot('_opAuthOpenIDPluginRegisterBox'); ?>
<p>使用したい OpenID を入力してください</p>
<p><input type="text" class="input_text" value="" /></p>
<p><input type="submit" class="input_submit" value="この OpenID を使用する" />
<?php end_slot() ?>
<?php op_include_box('opAuthOpenIDPluginRegisterBox', get_slot('_opAuthOpenIDPluginRegisterBox'), array(
'title' => 'OpenID で登録する',
)); ?>
2 changes: 2 additions & 0 deletions lib/opAuthAdapterOpenID.class.php
Expand Up @@ -98,6 +98,8 @@ public function authenticate()

$member->save();

$member->generateRegisterToken();

$result = $member->getId();
}

Expand Down
1 change: 1 addition & 0 deletions lib/opAuthLoginFormOpenID.class.php
Expand Up @@ -41,6 +41,7 @@ public function validate($validator, $values, $arguments = array())
{
$validator = new opAuthValidatorMemberConfig(array('config_name' => 'openid'));
$result = $validator->clean($values);

return $result;
}

Expand Down

0 comments on commit f1ee93f

Please sign in to comment.