From 056082288ba2f458f05b9f56baecb6fdbcd19a52 Mon Sep 17 00:00:00 2001 From: utopszkij Date: Wed, 8 Feb 2017 07:26:29 +0100 Subject: [PATCH] =?UTF-8?q?Nick=20nevet=20nem=20k=C3=A9rdez=20#41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adalogin/site/controller.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/adalogin/site/controller.php b/adalogin/site/controller.php index 8080740..a02411a 100644 --- a/adalogin/site/controller.php +++ b/adalogin/site/controller.php @@ -7,6 +7,7 @@ * @license #GNU/GPL * * ADA authoraze service integarttion +* update info 2017.02.08 no ask nickname */ // no direct access @@ -108,7 +109,28 @@ public function dologin() { echo '

'.$model->getError().'

'; } } else { - $this->displayRegistForm($view, $adaid, $adaemail, $assurance, $redi); + //+ 2017.02.08 no ask nickname + // $this->displayRegistForm($view, $adaid, $adaemail, $assurance, $redi); + //- 2017.02.08 no ask nickname + + //+ 2017.02.08 no ask nickname start new code + $nick = $adaid; + if ($model->save($adaid, $nick, $adaemail, $assurance)) { + $user = $model->getUser($adaid, $adaemail); + // login to joomla + if ($model->loginToJoomla($adaid, $adaemail)) { + $model->setUserAssurances($user, $assurance); + // goto $redi + $this->setRedirect($redi); + $this->redirect(); + } else { + echo '

'.$model->getError().'

'; + } + } else { + echo '

'.$model->getError().'

'; + } + //- 2017.02.08 no ask nickname end new code + } } // dologin