PluginsWhat you've got loaded..
www
Authenticate This!
A plugin for Coldfusion on Wheels by Andy Bellenie
Adds bCrypt authentication helper methods to any model.
Database
Requires a CHAR(60) column to store the hashed password. Default property name is 'passwordHash'
Setup
Add authenticateThis() to the `config()` block of any model.
<cfcomponent extends="Wheels" output="false"> <cffunction name="init"> <cfset authenticateThis()> </cffunction>
</cfcomponent>
Methods
-
Setup
- authenticateThis()
-
Callbacks
- hashPassword()
-
API
- checkPassword()
- resetPassword()
- generateRandomPassword()
Usage
To create a new hashed password, set a 'password' property and save, e.g. user.create(password="foobar", name=etc.). See method arguments for further usage information.
Work factor / Performance
The default work factor for bCrypt is set at 12 for a balance of security and performance. This can be increased or decreased using the workFactor argument of authenticateThis()
Support
I try to keep my plugins free from bugs and up to date with Wheels releases, but life often gets in the way. If you encounter a problem please log an issue using the tracker on github, where you can also browse my other plugins.
https://github.com/andybellenie