From 18d990a03468420136c3383fce9860c09f42251c Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 28 Mar 2021 20:40:26 +0000 Subject: air: more ui/ux and provide a possibility to lookup your registration id in mod regate (raw and unfinished) --- Zotlabs/Module/Register.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'Zotlabs/Module/Register.php') diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php index 73eaa5310..95d9da3b7 100644 --- a/Zotlabs/Module/Register.php +++ b/Zotlabs/Module/Register.php @@ -425,17 +425,19 @@ class Register extends Controller { . $regdelay . ' - ' . $regexpire); if($reg_delayed) { - // notice( 'ZAR0239I,' . t( 'Your digital id is' ) . EOL . 'd' . $didnew . EOL - $_SESSION['zar']['msg'] = ( t('Your validation token is') . ' ' . $pass2 . EOL - . t('Please remember your token and reload this page between') . EOL - . '' . datetime_convert('UTC', 'UTC', $regdelay, 'c') . ' ' . t('and') . ' ' . datetime_convert('UTC', 'UTC', $regexpire, 'c') . '' . EOL - . t('to complete registration.') - ); + // this could be removed to make registration harder + $_SESSION['zar']['pin'] = $pass2; + + $_SESSION['zar']['msg'] = t('Your validation token is') . EOL + . '

' . $pass2 . '

' . EOL + . t('Hold on, you can continue verification in') + . '
' . datetime_convert('UTC', 'UTC', $regdelay, 'c') . ' ' . t('and') . ' ' . datetime_convert('UTC', 'UTC', $regexpire, 'c') . '
' + //. t('Please come back to this page in the requested timeframe or wait for the countdown to complete.') + ; } else { $_SESSION['zar']['pin'] = $pass2; } - $_SESSION['zar']['pin'] = $pass2; goaway(z_root() . '/regate/' . bin2hex('d' . $didnew) . 'a' ); } @@ -446,7 +448,6 @@ class Register extends Controller { } } goaway(z_root() . '/regate/' . bin2hex($email) . $didx ); - } } } @@ -469,7 +470,7 @@ class Register extends Controller { } if(intval(get_config('system','register_policy')) == REGISTER_APPROVE) { - $registration_is = t('Registration on this hub is by approval only.') . 'ZAR0131I'; + $registration_is = t('Registration on this hub is by approval only.'); $other_sites = '' . t('Register at another affiliated hub in case when prefered') . ''; } @@ -483,7 +484,7 @@ class Register extends Controller { $invitations = false; if(intval(get_config('system','invitation_only'))) { $invitations = true; - $registration_is = t('Registration on this hub is by invitation only.') . 'ZAR0132I'; + $registration_is = t('Registration on this hub is by invitation only.'); $other_sites = '' . t('Register at another affiliated hub') . ''; } elseif (intval(get_config('system','invitation_also'))) { $invitations = true; @@ -565,7 +566,7 @@ class Register extends Controller { . "tao.zar = { vsn: '2.0.0', form: {}, msg: {} };\n" . "tao.zar.patano = /^d[0-9]{5,10}$/;\n" . "tao.zar.patema = /^[a-z0-9.-]{2,64}@[a-z0-9.-]{4,32}\.[a-z]{2,12}$/;\n" - . "tao.zar.msg.ZAR0239E = '" . t('email mistake') . "';\n", + . "tao.zar.msg.ZAR0239E = '" . t('Email address not valid') . "';\n", '$form_security_token' => get_form_security_token("register"), '$title' => t('Registration'), @@ -575,7 +576,7 @@ class Register extends Controller { '$msg' => $opal['rn'] . ',' . $opal['an'], '$invitations' => $invitations, '$invite_code' => $invite_code, - '$haveivc' => t('I have an invite code') . '.ZAR0134I', + '$haveivc' => t('I have an invite code'), '$now' => $duty['nowfmt'], '$atform' => $duty['atform'], '$auto_create' => $auto_create, @@ -592,7 +593,7 @@ class Register extends Controller { '$pass1' => $password, '$pass2' => $password2, '$submit' => t('Register'), - '$verify_note' => (($email_verify) ? t('This site requires verification. After completing this form, please check the notice or your email for further instructions.') . 'ZAR0135I' : '') + '$verify_note' => (($email_verify) ? t('This site requires verification. After completing this form, please check the notice or your email for further instructions.') : '') )); return $o; -- cgit v1.2.3