Merge branch 'main' of bitbucket.org:venbainformationtechnology/bb_sign

This commit is contained in:
aadhavan valli 2024-07-17 16:14:53 +05:30
commit 466975dbce
2 changed files with 2 additions and 2 deletions

View File

@ -688,7 +688,7 @@ class MasterController extends BaseController
$documentUrl = base_url();
// helper('url');
$url ='<a href="' . generate_signed_url('preview', ['doc_id'=> md5((string)$doc_id)], 36000) . '">Preview and Approve Document</a>';
$url ='<a href="' . generate_signed_url('preview', ['doc_id'=> md5((string)$doc_id)], 259200) . '">Preview and Approve Document</a>';
// $businessData = $this->BranchModel->select('branches.* , business.business_name ')
// ->join('business', 'branches.business_id = business.business_id', 'left')
// ->where('branches.branch_id',$this->session->get('logged_in_staff_branch_id'))

View File

@ -3,7 +3,7 @@
use Config\Services;
if (!function_exists('generate_signed_url')) {
function generate_signed_url($route, $params = [], $expiresIn = 3600)
function generate_signed_url($route, $params = [], $expiresIn = 259200)
{
$secretKey = 'your-secret-key'; // Change this to your secret key
$expiresAt = time() + $expiresIn;