forked from gpickin/coldbox-plugin-BCrypt
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ModuleConfig.cfc
36 lines (32 loc) · 1006 Bytes
/
ModuleConfig.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
* ---
* Module Configuration
*/
component {
// Module Properties
this.title = "bcrypt";
this.author = "Ortus Solutions, Corp";
this.webURL = "https://www.ortussolutions.com";
this.description = "This module provides a way to do bcrypt encryption in ColdBox apps";
this.modelNamespace = "bcrypt";
this.cfmapping = "bcrypt";
// Module Dependencies That Must Be Loaded First, use internal names or aliases
this.dependencies = [ "cbjavaloader" ];
// Helpers
this.applicationHelper = [ "helpers/mixins.cfm" ];
/**
* Module Config
*/
function configure(){
// Module Settings
settings = { libPath : modulePath & "/models/lib", workFactor : 12 };
}
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
// Class load bcrypt
wireBox.getInstance( "loader@cbjavaloader" ).appendPaths( settings.libPath );
}
}