Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5dc50182
authored
Sep 18, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
activation on POST methdo
parent
f22ab23a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
sails/src/api/controllers/LicenseController.js
sails/src/api/controllers/TPVController.js
sails/src/api/controllers/LicenseController.js
View file @
5dc50182
...
@@ -76,7 +76,7 @@ module.exports = {
...
@@ -76,7 +76,7 @@ module.exports = {
activate
:
function
(
req
,
res
)
{
activate
:
function
(
req
,
res
)
{
var
params
=
req
.
allParams
();
var
params
=
req
.
allParams
();
console
.
log
(
"Activating license: "
+
JSON
.
stringify
(
params
));
sails
.
debug
.
log
(
"Activating license: "
+
JSON
.
stringify
(
params
));
if
(
!
params
.
number
)
if
(
!
params
.
number
)
return
res
.
badRequest
();
return
res
.
badRequest
();
...
...
sails/src/api/controllers/TPVController.js
View file @
5dc50182
...
@@ -64,7 +64,7 @@ module.exports = {
...
@@ -64,7 +64,7 @@ module.exports = {
DS_MERCHANT_URLKO
:
'https://'
+
req
.
headers
.
host
+
'/app/#/student/'
+
params
.
id_stu
+
"/setup/renewed/0"
// Returning URL (error)
DS_MERCHANT_URLKO
:
'https://'
+
req
.
headers
.
host
+
'/app/#/student/'
+
params
.
id_stu
+
"/setup/renewed/0"
// Returning URL (error)
};
};
console
.
log
(
"Data: "
+
JSON
.
stringify
(
tpvdata
));
sails
.
debug
.
log
(
"Data: "
+
JSON
.
stringify
(
tpvdata
));
//
//
// Sign submit data
// Sign submit data
//
//
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment