Skip to content

Commit

Permalink
Nick nevet nem kérdez #41
Browse files Browse the repository at this point in the history
  • Loading branch information
utopszkij committed Feb 8, 2017
1 parent 32bcd23 commit 0560822
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion adalogin/site/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @license #GNU/GPL
*
* ADA authoraze service integarttion
* update info 2017.02.08 no ask nickname
*/

// no direct access
Expand Down Expand Up @@ -108,7 +109,28 @@ public function dologin() {
echo '<p class="errorMsg">'.$model->getError().'</p>';
}
} 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 '<p class="errorMsg">'.$model->getError().'</p>';
}
} else {
echo '<p class="errorMsg">'.$model->getError().'</p>';
}
//- 2017.02.08 no ask nickname end new code

}
} // dologin

Expand Down

0 comments on commit 0560822

Please sign in to comment.