server_user:
------------
* Jakefile: Mocha runs always with -R spec, also for single test cases.
* Del: test/data/config-schema.json
* Upd: config-schema.json: Now with db.user and db.password; The db.url no longer needs to consist any credentials
* Upd: config.json.example
* Upd: rcft_config: Now works like a function e.g. var config = Config(file, schema);
* Upd: unit.rcft_config to test the new module.
* Upd: rcft_utils: Added partial() implementation.
* Upd: server.js: Supports HTTP and HTTPS server (Credentials will not be tracked with git)
* Upd: package.json: Added bcrypt
* Del: some useless test/data/configs.jsons
* Add: test/fixtures/testdbconnect.js; Use this module in your test to connect to the test db.
* Add: lib/userapi.js: Api for user database. Create new user, retrieve user with name and pwd.
* Upd: config.json.example
Capitalized module names; Added some comments; Replaced duplicate code with a function;
userapi.js now only exports the mongoose model. No need to call #.model anymore.
server_user:
------------
* Renamed: test/fixtures/testdbconnect to testdb
* Unit: unit.userapi is now testing all cases of #getAuthenticated
* userapi: Renamed lockedUntil property to lockedSince
* userapi#increaseLoginAttempts: Removed old locked code.
* userapi#isLocked: Updated locked code to the new self expiring property lockedSince
* testdb#connect: New connect function for the test db fixtures
userapi: switched back to the old lockUntil schema. Mongooses expires worked not as expected.
server_user:
------------
Upd: sendmail support for the config file (path, sender)
Upd: config.json.example with sendmail example
Upd: package.json added nodemailer
Upd: server: replaced the old config loader with the new one.
Unit: userapi: Updated to test the new module constructor + Replaced multiple passw incorrect tests with a force lock test
Upd: userapi: New constructor preparing the sendmail config.
serer_user:
-----------
Bug: server: Fixed a naming issue in #inLogDir
Upd: Jakefile: Added userapi.js to the docco command + docco runs now with -l linear
Upd: userapi: No exception throwing anymore. We just return undefined + #lastError() is now available
Unit: userapi: Test fixed due to the changes in the userapi
Upd: testdb: Needs the server config to connect properly. e.g. var db = TestDB(config); db.connect(cb); Unit: userapi: Fixed due to the changes in testdb
server_user:
------------
Upd: Jakefile: Added mocha test environment. (ROOT_DIR,TEST_DATA_DIR,TEST_FIXTURES_DIR,LIB_DIR)
Unit: config-valid1.json fixed: Was not matching with the current config version.
Unit: rcft_config: Switched to environment vars. Renamed the descriptions.
Unit: userapi: Switched to env vars. Renamed some descriptions.
server_user:
------------
Upd: server: Renamed environment path ROOT_DIRECTORY => ROOT_DIR
Add: template: New template module for rendering template files asynchronous.
Add: test data for the new template test.
Unit: template: Added the unit test for the template module
Upd: template: Docu corrected
server_user:
------------
Upd: Jakefile: Now supports jshint for a single file or all files
Upd: lib: Corrected most of the jshint errors.
Upd: server: Corrected most of the jshint errors.
Upd: BuildTools: Improved jshint functionality
Upd: .jshintrc: Setup hinting config
server_user:
Upd: rcft_config: Schema is now changeable afterwards. (realized through private properties)
Unit: rcft_config: Test cases for the new module
Add: test/data/alt-config-schema.json for the new rcft_config test.
Upd: server. Using the new config module.
Upd: template: Tags can now be modified after construction.
Unit: template: Tests for the new module.
server_user:
------------
Bug: rcft_utils: Fixed some bugs in the module.
Unit: rcft_utils: Added a unit test for this module.
Bug: unit.userapi: Changed to the new config module.
server_user
-----------
Upd: rcft_config: Added new ConfigLoaderError class which inherits from Error.
Upd: rcft_config: Throws more exceptions if something fails
Upd: rcft_utils: Added #isFunction(val)
Unit: both rcft_utils and rcft_config updated for the new modules
Upd: server: Using try/catch around the ConfigLoader
server_user
-----------
Upd: config-schema.json: Added new domain field
Upd: config.example.json to match the new schema
Unit: Fixed the config test data to match the new schema.
Upd: package.json: Added async
Add: templates/mail/passwordresetmail.tpl.html
Upd: userapi: Added reset password mail support; Changed to custom error class UserApiError; Optimized the constructor.
Unit: userapi: Fixed to match the module updates.
Fixed some access bugs in the userapi.
server_user
-----------
Renamed: rcft_config -> config
Renamed: rcft_utils -> utils
Upd: several files: replaced all occurences of rcft_utils and rcft_config with the new names
Upd: config: Is now singleton. No function constructor anymore. You can only load once. See docs.
Unit: config: Updated due to the changes in the module
Upd: package.json: Removed Nodemailer, Added mandrill-api
Upd: server: Replaced the old config code with the new one.
Del: Useless test files
server_user
-----------
Upd: config-schema: moved portssl to ssl and renamed it to sslPort
---> Example also updated.
Add: routes.js to lib; Handles the routing for the server and also api interactions
Upd: server: Added _routes_ module
---> Added login routing.
Add: template for the accountlock mail.
Upd: userapi: Removed the constructor due to the singleton config class
---> Improved and exported _#getLockTime_
---> Added _Mandrill_ configuration
---> Added _#getDefaultMessage_; Returns an message object without any content, but default parameters
---> Added _#createRecipient_; Create a recipient object based on the mail and name.
---> Added server logging instances.
---> Replaced _Nodemailer_ code with the code for _Mandrill_
---> Added _#changePassword_ and _#changeEmail_ as methods for the user.
---> Added a new virtual called _fullname_; Returns the firstname and lastname combined and separated by a whitespace
---> Renamed: failedLogin to failedLoginReason
Upd: utils: Added isNull; isDefined checks only typeof !== undefined