aboutsummaryrefslogtreecommitdiff
path: root/actions/openid_client
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-17 12:43:35 -0500
committercash <cash.costello@gmail.com>2011-12-17 12:43:35 -0500
commita62adbd9cb180fe6bbf88cff2f787d262f737ecb (patch)
tree9ecc324eba4dcdf57f98cde1bcc66e03c148b027 /actions/openid_client
parentbc56428d493d99576ff274611df3b029e7e47e0a (diff)
downloadelgg-a62adbd9cb180fe6bbf88cff2f787d262f737ecb.tar.gz
elgg-a62adbd9cb180fe6bbf88cff2f787d262f737ecb.tar.bz2
removed code from previous plugin
Diffstat (limited to 'actions/openid_client')
-rw-r--r--actions/openid_client/login.php2
-rw-r--r--actions/openid_client/register.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/actions/openid_client/login.php b/actions/openid_client/login.php
index 5e7ad3ace..305ea3110 100644
--- a/actions/openid_client/login.php
+++ b/actions/openid_client/login.php
@@ -1,6 +1,6 @@
<?php
/**
- *
+ * OpenID client login action
*/
elgg_load_library('openid_consumer');
diff --git a/actions/openid_client/register.php b/actions/openid_client/register.php
index e847d2395..c4d3501ed 100644
--- a/actions/openid_client/register.php
+++ b/actions/openid_client/register.php
@@ -1,6 +1,6 @@
<?php
/**
- * Register an OpenID user
+ * Register OpenID user action
*/
elgg_set_context('openid_client');
@@ -10,7 +10,7 @@ $name = get_input('name');
$email = get_input('email');
$openid_identifier = get_input('openid_identifier');
-$password = 'test';
+$password = generate_random_cleartext_password();
try {
$guid = register_user($username, $password, $name, $email, false);
@@ -30,5 +30,5 @@ if (!elgg_trigger_plugin_hook('register', 'user', array('user' => $user), true))
}
login($user);
-system_message($message);
+system_message(elgg_echo('openid_client:success:register'));
forward();