aboutsummaryrefslogtreecommitdiff
path: root/actions/openid_client
diff options
context:
space:
mode:
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();