aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-24 14:49:35 -0800
committerFriendika <info@friendika.com>2010-11-24 14:49:35 -0800
commit85a6e9634a480f094d3acbce9aa0ce0aa1e6b29c (patch)
tree64424060b9ba713c82dfa1d9eecf89dcffdcee4c /mod/register.php
parent81636f6f5f1a8e6d3f9758ee68bebf6cb9a5d99f (diff)
downloadvolse-hubzilla-85a6e9634a480f094d3acbce9aa0ce0aa1e6b29c.tar.gz
volse-hubzilla-85a6e9634a480f094d3acbce9aa0ce0aa1e6b29c.tar.bz2
volse-hubzilla-85a6e9634a480f094d3acbce9aa0ce0aa1e6b29c.zip
report failure to generate keys
Diffstat (limited to 'mod/register.php')
-rw-r--r--mod/register.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/register.php b/mod/register.php
index 20ea0175a..82791bb5d 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -113,6 +113,11 @@ function register_post(&$a) {
// Get private key
+ if(empty($res)) {
+ notice( t('SERIOUS ERROR: Generation of security keys failed.') . EOL);
+ return;
+ }
+
$prvkey = '';
openssl_pkey_export($res, $prvkey);