Skip to content

Commit

Permalink
Merge pull request #1585 from Criptos/master
Browse files Browse the repository at this point in the history
redirectUri at userLogin
  • Loading branch information
DanielnetoDotCom authored Mar 22, 2019
2 parents 87cc54c + c879543 commit 8ec236a
Show file tree
Hide file tree
Showing 4 changed files with 773 additions and 3 deletions.
Binary file added .classic.htaccess.swp
Binary file not shown.
9 changes: 9 additions & 0 deletions objects/login.json.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@

error_log("Start Login Request");

error_log("redirectUri: ".$_POST['redirectUri']);

if(!preg_match("|^".$global['webSiteRootURL']."|", $_POST['redirectUri']))
$_POST['redirectUri']=$global['webSiteRootURL'];

error_log("sane redirectUri: ".$_POST['redirectUri']);

use Hybridauth\Hybridauth;
use Hybridauth\HttpClient;

Expand Down Expand Up @@ -141,6 +148,8 @@
$object->isAdmin = User::isAdmin();
$object->canUpload = User::canUpload();
$object->canComment = User::canComment();
$object->redirectUri=$_POST['redirectUri'];

if (empty($advancedCustomUser->userCanNotChangeCategory) || User::isAdmin()) {
$object->categories = Category::getAllCategories(true);
}else{
Expand Down
Loading

0 comments on commit 8ec236a

Please sign in to comment.