Skip to content

Instantly share code, notes, and snippets.

Anil Singh anilsingh581

Block or report user

Report or block anilsingh581

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:90bad81c805f2139d4dc
It might help you http://www.code-sample.com/2015/03/top-10-security-risks-in-angularjs.html
View gist:0b62de647e7dc6d9fab7
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();
@anilsingh581
anilsingh581 / gist:2e4768e9bd96d8cdbf77
Created Aug 4, 2014
I have AntiForgery validate issues .
View gist:2e4768e9bd96d8cdbf77
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);
You can’t perform that action at this time.