diff options
author | friendica <info@friendica.com> | 2012-08-08 18:50:04 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-08 18:50:04 -0700 |
commit | 9a39d4ade21af15e9d6a3aae1f467f0d173cc0de (patch) | |
tree | 569a3839709bf452b44515dc8c6d3f887f78b9dc /include/account.php | |
parent | c28da5673731acbedecb4209c38b72046db597e1 (diff) | |
download | volse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.tar.gz volse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.tar.bz2 volse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.zip |
moving forward again
Diffstat (limited to 'include/account.php')
-rw-r--r-- | include/account.php | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/include/account.php b/include/account.php index 6e096b8bf..10ef6c525 100644 --- a/include/account.php +++ b/include/account.php @@ -9,7 +9,7 @@ require_once('include/datetime.php'); function create_account($arr) { - // Required: { email, password, password2, tos } + // Required: { email, password } $a = get_app(); $result = array('success' => false, 'user' => null, 'password' => '', 'message' => ''); @@ -60,26 +60,11 @@ function create_account($arr) { $result['password'] = $new_password; - require_once('include/crypto.php'); - - $keys = new_keypair(4096); - - if($keys === false) { - $result['message'] .= t('SERIOUS ERROR: Generation of security keys failed.') . EOL; - return $result; - } - - $default_service_class = get_config('system','default_service_class'); - if(! $default_service_class) - $default_service_class = ''; - - - $prvkey = $keys['prvkey']; - $pubkey = $keys['pubkey']; $r = q("INSERT INTO account - ( account_parent, account_password, account_email, account_language, - account_created, account_flags, account_roles, account_expires, account_service_class ) + ( account_parent, account_password, account_email, account_language, + account_created, account_flags, account_roles, account_expires, + account_service_class ) VALUES ( %d, '%s', '%s', '%s', '%s', %d, %d, '%s', '%s' )", intval($parent), dbesc($password_encoded), |