aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Register.php
diff options
context:
space:
mode:
authorHilmar R <u02@u29lx193>2021-01-29 23:25:47 +0100
committerHilmar R <u02@u29lx193>2021-01-29 23:25:47 +0100
commit3773bceb46a18c500f898409deb4e6234ac5eebf (patch)
tree9336fb93948cbdf6b9e7629f41fb88dd9aa6c9d5 /Zotlabs/Module/Register.php
parent4ecb4189b8787d57c601ebf467ecd94fa706d1ca (diff)
downloadvolse-hubzilla-3773bceb46a18c500f898409deb4e6234ac5eebf.tar.gz
volse-hubzilla-3773bceb46a18c500f898409deb4e6234ac5eebf.tar.bz2
volse-hubzilla-3773bceb46a18c500f898409deb4e6234ac5eebf.zip
context help register en,de
Diffstat (limited to 'Zotlabs/Module/Register.php')
-rw-r--r--Zotlabs/Module/Register.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php
index 1cf5af5b3..6463710c7 100644
--- a/Zotlabs/Module/Register.php
+++ b/Zotlabs/Module/Register.php
@@ -22,7 +22,7 @@ class Register extends Controller {
// when they first need to register someplace. Once they've
// created a channel, we'll try to revive the connection request
// and process it.
-
+
if($_REQUEST['connect'])
$_SESSION['connect'] = $_REQUEST['connect'];
@@ -69,6 +69,17 @@ class Register extends Controller {
$password = ( (x($arr,'password')) ? trim($arr['password']) : '');
$reonar = array();
+
+ if ($email && $invite_code) {
+
+ if ( preg_match('/^.{2,64}\@[a-z0-9.-]{4,32}\.[a-z]{2,12}$/', $email ) ) {
+ if ( preg_match('/^[a-z0-9]{12,12}$/', $invite_code ) ) {
+ // xxx
+ //goaway(z_root() . '/regate/' . bin2hex($email) . 'e' );
+ }
+ }
+
+ }
// assume someone tries to validate (dId2 C/D/E), because only field email entered
if ( $email && ( ! $invite_code ) && ( ! $password ) && ( ! $_POST['password2'] ) ) {