aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Regate.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-04-11 17:46:06 +0000
committerMario <mario@mariovavti.com>2021-04-11 17:46:06 +0000
commitd9245566f538711b8692e53a9fa0b59bb2c394d1 (patch)
tree8dc1d51f0c0b0d3f408d821f8b1a1f0955218dd6 /Zotlabs/Module/Regate.php
parent16cc695115688b04dae1b3ab97aef149b17bc7e4 (diff)
downloadvolse-hubzilla-d9245566f538711b8692e53a9fa0b59bb2c394d1.tar.gz
volse-hubzilla-d9245566f538711b8692e53a9fa0b59bb2c394d1.tar.bz2
volse-hubzilla-d9245566f538711b8692e53a9fa0b59bb2c394d1.zip
register: change some strings and some whitespace fixes
Diffstat (limited to 'Zotlabs/Module/Regate.php')
-rw-r--r--Zotlabs/Module/Regate.php30
1 files changed, 17 insertions, 13 deletions
diff --git a/Zotlabs/Module/Regate.php b/Zotlabs/Module/Regate.php
index bc2e578b6..84f78e066 100644
--- a/Zotlabs/Module/Regate.php
+++ b/Zotlabs/Module/Regate.php
@@ -265,7 +265,7 @@ class Regate extends \Zotlabs\Web\Controller {
'$regdelay' => $_SESSION['zar']['regdelay'],
'$regexpire' => $_SESSION['zar']['regexpire'],
'$strings' => [
- t('Hold on, you can start verification in'),
+ t('Hold on, you can start validation in'),
t('Please remember your validation token for ID'),
t('Token validity')
]
@@ -322,14 +322,11 @@ class Regate extends \Zotlabs\Web\Controller {
if ($deny) {
if (substr($r['reg_hash'],0,4) == $deny) {
-
zar_log('ZAR1134S email verfication denied ' . $did2);
- $msg = 'ZAR1133A' . ' ' . t('Sorry for any inconvience. Thank you for your response.');
$o = replace_macros(get_markup_template('plain.tpl'), [
- '$title' => t('Registration request denied'),
- '$now' => $nowfmt,
- '$infos' => $msg . EOL,
+ '$title' => t('Registration request revoked'),
+ '$infos' => t('Sorry for any inconvience. Thank you for your response.')
]);
$reonar = json_decode( $r['reg_stuff'], true);
@@ -372,6 +369,12 @@ class Regate extends \Zotlabs\Web\Controller {
$rd = q("UPDATE register SET reg_vital = 0 WHERE reg_id = %d ",
intval($r['reg_id'])
);
+
+ $o = replace_macros(get_markup_template('plain.tpl'), [
+ '$infos' => t('ID expired'),
+ ]);
+
+ return $o;
}
$o = replace_macros(get_markup_template('regate_pre.tpl'), [
@@ -380,33 +383,34 @@ class Regate extends \Zotlabs\Web\Controller {
'$id' => $did2,
'$countdown' => datetime_convert('UTC', 'UTC', $r['reg_startup'], 'c'),
'$strings' => [
- t('Hold on, you can start verification in'),
+ t('Hold on, you can start validation in'),
t('You will require the validation token for ID')
- ] ]);
+ ]
+ ]);
}
}
}
}
else {
- $msg = t('Identity unknown');
+ $msg = t('Unknown or expired ID');
zar_log('ZAR1132E ' . $msg . ':' . $did2 . ',' . $didx);
$o = replace_macros(get_markup_template('plain.tpl'), [
'$title' => $title,
'$now' => $nowfmt,
- '$infos' => $msg . EOL,
+ '$infos' => $msg
]);
}
}
else {
- $msg = 'ZAR1131E ' . t('dId2 mistaken');
+ $msg = 'ZAR1131E ' . t('dId2 malformed');
// $log = ' from § ' . $ip . ' §' . ' (' . dbesc($did2) . ')';
zar_log($msg);
$o = replace_macros(get_markup_template('plain.tpl'), [
'$title' => $title,
'$now' => $nowfmt,
- '$infos' => ($msg) . EOL,
- ]);
+ '$infos' => $msg
+ ]);
}
return $o;