disable csrf fix, fix account state javascript

disable csrf in frontend and backend
	reception account_state javascript fix
This commit is contained in:
Roland Schneider 2015-11-29 20:19:34 +01:00
parent 4935aaa4a2
commit 9962a35059
5 changed files with 13 additions and 6 deletions

View File

@ -15,10 +15,11 @@ return [
'modules' => [], 'modules' => [],
'components' => [ 'components' => [
'request' => [ 'request' => [
'csrfParam' => '_backendCSRF', 'enableCsrfValidation'=>false,
'csrfCookie' => [ // 'csrfParam' => '_backendCSRF',
'path' => '/backend/web', // 'csrfCookie' => [
], // 'path' => '/backend/web',
// ],
], ],
'user' => [ 'user' => [
'identityClass' => 'common\models\User', 'identityClass' => 'common\models\User',

View File

@ -1,3 +1,6 @@
-0.0.7
disable csrf in frontend and backend
reception account_state javascript fix
-0.0.6 -0.0.6
csrf fixing csrf fixing
product - allow sale when count > stock product - allow sale when count > stock

View File

@ -3,5 +3,5 @@ return [
'adminEmail' => 'rocho02@gmail.com', 'adminEmail' => 'rocho02@gmail.com',
'supportEmail' => 'rocho02@gmail.com', 'supportEmail' => 'rocho02@gmail.com',
'user.passwordResetTokenExpire' => 3600, 'user.passwordResetTokenExpire' => 3600,
'version' => 'v0.0.6' 'version' => 'v0.0.7'
]; ];

View File

@ -13,6 +13,9 @@ return [
'bootstrap' => ['log'], 'bootstrap' => ['log'],
'controllerNamespace' => 'frontend\controllers', 'controllerNamespace' => 'frontend\controllers',
'components' => [ 'components' => [
'request' => [
'enableCsrfValidation'=>false,
],
'user' => [ 'user' => [
'identityClass' => 'common\models\User', 'identityClass' => 'common\models\User',
'enableAutoLogin' => true, 'enableAutoLogin' => true,

View File

@ -122,7 +122,7 @@ function AccountState(o){
var money; var money;
money = accounting.formatNumber(app.money, 0, " "); // 9 876 543.210 money = accounting.formatNumber(app.money, 0, " "); // 9 876 543.210
$('.money').html(money); $('.money').html(money);
$('#accountstate-money').val(money); $('#accountstate-money').val(app.money +"");
} }
function updateLastMoney(){ function updateLastMoney(){