Skip to content

Commit

Permalink
Popravek, dodan secret za sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurij Podgoršek committed Oct 3, 2019
1 parent 31ad7a0 commit b7fc407
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/Resources/coffee/controller/playlist.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ module.exports = ($rootScope, $q, _, CurrentTrackList, TrackList, TrackListSync,

syncError = () -> alert 'There was an error syncing to website'
syncSuccess = (resp) ->
if not resp.success
alert 'There was an error syncing to website'
return

trackList.syncNodeId = parseInt resp.nid
$scope.hideIntro = true

Expand Down
1 change: 1 addition & 0 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ parameters:

locale: en
secret: ThisTokenIsNotSoSecretChangeIt
rs_secret: someOtherSecretKey

debug_toolbar: true
debug_redirects: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ public function putSyncAction(Tracklist $tracklist, Request $request)
// TODO proper avtorji, ko bomo imeli ldap
'author' => $tracklist->getName(),
'datetime' => "$date $time",
'tracks' => $data['body']
'tracks' => $data['body'],
'secret' => $this->container->getParameter('rs_secret')
];

if ($tracklist->getSyncNodeId()) {
Expand Down

0 comments on commit b7fc407

Please sign in to comment.