aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2025-06-08 22:46:26 +0200
committerHarald Eilertsen <haraldei@anduin.net>2025-06-08 22:46:26 +0200
commit0e4924d7c5ca0ae650e6ecade31cfadc0f954770 (patch)
treec9bcfeabceb27ce8b96253305fb4d5de14427bc0
parent5316ebfe7cd518ae89e2b76fa0080f8298ce9fd4 (diff)
downloadvolse-hubzilla-0e4924d7c5ca0ae650e6ecade31cfadc0f954770.tar.gz
volse-hubzilla-0e4924d7c5ca0ae650e6ecade31cfadc0f954770.tar.bz2
volse-hubzilla-0e4924d7c5ca0ae650e6ecade31cfadc0f954770.zip
Remove obsolete verify_email_addressNOP function
-rw-r--r--include/account.php70
1 files changed, 0 insertions, 70 deletions
diff --git a/include/account.php b/include/account.php
index 2bfb630f2..ad69b4d9a 100644
--- a/include/account.php
+++ b/include/account.php
@@ -285,76 +285,6 @@ function verify_email_address($arr) {
return $res;
}
-function verify_email_addressNOP($arr) {
-
- if(array_key_exists('resend',$arr)) {
- $a = q("select * from account where account_email = '%s' limit 1",
- dbesc($arr['email'])
- );
- if(! ($a && ($a[0]['account_flags'] & ACCOUNT_UNVERIFIED))) {
- return false;
- }
- $account = $a[0];
- // [hilmar ->
- $v = q("SELECT * FROM register WHERE reg_uid = %d AND reg_vital = 1 "
- . " AND reg_pass = 'verify' LIMIT 1",
- intval($account['account_id'])
- );
- // <- hilmar]
- if($v) {
- $hash = $v[0]['reg_hash'];
- }
- else {
- return false;
- }
- }
- else {
- $hash = random_string(24);
-
- // [hilmar ->
- q("INSERT INTO register ( reg_hash, reg_created, reg_uid, reg_pass, reg_lang, reg_stuff ) "
- ." VALUES ( '%s', '%s', %d, '%s', '%s', '' ) ",
- dbesc($hash),
- dbesc(datetime_convert()),
- intval($arr['account']['account_id']),
- dbesc('verify'),
- dbesc($arr['account']['account_language'])
- );
- // <- hilmar]
- $account = $arr['account'];
- }
-
- push_lang(($account['account_language']) ? $account['account_language'] : 'en');
-
- $email_msg = replace_macros(get_intltext_template('register_verify_member.tpl'),
- [
- '$sitename' => Config::Get('system','sitename'),
- '$siteurl' => z_root(),
- '$email' => $arr['email'],
- '$uid' => $account['account_id'],
- '$hash' => $hash,
- '$details' => ''
- ]
- );
-
- $res = z_mail(
- [
- 'toEmail' => $arr['email'],
- 'messageSubject' => sprintf( t('Registration confirmation for %s'), Config::Get('system','sitename')),
- 'textVersion' => $email_msg,
- ]
- );
-
- pop_lang();
-
- if(! $res)
- logger('send_reg_approval_email: failed to account_id: ' . $arr['account']['account_id']);
-
- return $res;
-}
-
-
-
function send_reg_approval_email($arr) {