Download invoice fixes
gitea/hedera-web/pipeline/head This commit looks good
Details
gitea/hedera-web/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1d782a28ed
commit
2aff47ef2e
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.407.68) stable; urgency=low
|
||||
hedera-web (1.407.69) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ Hedera.Invoices = new Class({
|
|||
var params = {
|
||||
srv: 'rest:dms/invoice',
|
||||
invoice: invoiceId,
|
||||
token: this.conn.token
|
||||
access_token: this.conn.token
|
||||
};
|
||||
|
||||
Object.assign(column, {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.407.68",
|
||||
"version": "1.407.69",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
|
@ -81,7 +81,7 @@ class RestService extends Service {
|
|||
http_response_code($status);
|
||||
}
|
||||
|
||||
function errorHandler($errno, $message, $file, $line, $context) {
|
||||
function errorHandler($errno, $message, $file, $line, $context = NULL) {
|
||||
$eFlag =
|
||||
E_USER_NOTICE
|
||||
| E_USER_WARNING
|
||||
|
|
|
@ -138,13 +138,19 @@ abstract class Service {
|
|||
function login() {
|
||||
$db = $this->db;
|
||||
$anonymousUser = TRUE;
|
||||
$token = NULL;
|
||||
|
||||
if (!empty($_SERVER['HTTP_AUTHORIZATION'])) {
|
||||
if (!empty($_SERVER['HTTP_AUTHORIZATION']))
|
||||
$token = $_SERVER['HTTP_AUTHORIZATION'];
|
||||
if (!empty($_GET['access_token']))
|
||||
$token = $_GET['access_token'];
|
||||
|
||||
if (isset($token)) {
|
||||
$userId = $db->getValue(
|
||||
'SELECT userId FROM salix.AccessToken
|
||||
WHERE id = #
|
||||
AND NOW() <= TIMESTAMPADD(SECOND, ttl, created)',
|
||||
[$_SERVER['HTTP_AUTHORIZATION']]
|
||||
[$token]
|
||||
);
|
||||
|
||||
if (!$userId)
|
||||
|
|
Loading…
Reference in New Issue