Skip to content

Instantly share code, notes, and snippets.

View anilsingh581's full-sized avatar

Anil Singh anilsingh581

View GitHub Profile
@anilsingh581
anilsingh581 / gist:2e4768e9bd96d8cdbf77
Created August 4, 2014 08:25
I have AntiForgery validate issues .
Error :
The anti-forgery token could not be decrypted. If this application is hosted by a Web Farm or cluster, ensure that all machines are running the same version of ASP.NET Web Pages and that the <machineKey> configuration specifies explicit encryption and validation keys. AutoGenerate cannot be used in a cluster.
code:
AntiForgery.Validate(cookieToken, formToken);
It might help you http://www.code-sample.com/2015/03/top-10-security-risks-in-angularjs.html
angular.module('bDatepicker', []).
directive('bDatepicker', function(){
return {
require: '?ngModel',
restrict: 'A',
link: function($scope, element, attrs, controller) {
var updateModel;
updateModel = function(ev) {
element.datepicker('hide');
element.blur();