Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 6aedea7

Browse files
committed
Merge pull request #10 from strongloop/feature/speed-up-user-passwords
Speed up login action
2 parents 3a1b542 + 555979d commit 6aedea7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/helpers.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ var assert = require('assert');
1010
var request = require('supertest');
1111

1212
_beforeEach.withApp = function(app) {
13+
if (app.models.User) {
14+
// Speed up the password hashing algorithm
15+
app.models.User.settings.saltWorkFactor = 4;
16+
}
17+
1318
beforeEach(function() {
1419
this.app = app;
1520
var _request = this.request = request(app);

0 commit comments

Comments
 (0)