0.0.7 • Published 9 years ago

zero-security v0.0.7

Weekly downloads
25
License
-
Repository
-
Last release
9 years ago

zero-security

This module secure relier's model with varied strategies.

Usage

  1. Add dependency to your module package.json file like:
{
	"name" : "YOUR_MODULE_NAME",
	"zero" : {
		"dependencies" : {
			"security" : "^0.0.1"
		}
	}
}
  1. make your model as:
module.models = [{
    identity : 'post',
    attributes : {
    	content : 'string'
    },
    security : {
        "content" : ['xss']
	}
},{
    identity : 'user',
    attributes : {
    	password : 'string'
    },
    security : {
		"password" : ['password']
	}
}]
  1. Current supported secure strategies: xss, encryptPermanent, password.
0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago