authpartner
Clone or download
Modified Files
--- 'a/doc.php'
+++ b/doc.php
@@ -1,5 +1,9 @@
<?php
include 'config.php';
+if(isset($_GET['error_description'])){
+ header("Location: index.php?message=".$_GET['error_description']);
+ exit;
+}
$code = $_GET['code'];
$state = $_GET['state'];
$url = $config['access_token_download'];
--- 'a/header.php'
+++ b/header.php
@@ -115,7 +115,7 @@
<div class="dropdown-toggle" data-toggle="dropdown">DIGILOCKER</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<li>
- <span><form action = "<?php echo $config['code_download'] ?>" method = "GET" role="form">
+ <span><form action = "<?php echo $config['code_download'] ?>" method = "POST" role="form">
<div class="form-group has-success" style="display:none">
<label class="control-label" for="inputSuccess">Response Type</label>
<input type="text" class="form-control" name = "response_type" value="code">
--- 'a/uploaddoc.php'
+++ b/uploaddoc.php
@@ -1,8 +1,9 @@
<?php
-if(isset($_GET['error'])){
-header("Location: index.php");
-}
include 'config.php';
+if(isset($_GET['error_description'])){
+ header("Location: index.php?message=".$_GET['error_description']);
+ exit;
+}
$code = $_GET['code'];
$state = $_GET['state'];
$url = $config['access_token_download'];