Added initial recaptcha + RL support

This commit is contained in:
Wyatt Johnson
2017-03-06 15:26:44 -07:00
parent 77386fb21d
commit d82f3d0f0d
8 changed files with 694 additions and 394 deletions
+2 -10
View File
@@ -64,22 +64,14 @@ describe('services.UsersService', () => {
describe('#findLocalUser', () => {
it('should find a user when we give the right credentials', () => {
it('should find a user', () => {
return UsersService
.findLocalUser(mockUsers[0].profiles[0].id, '1Coral!-')
.findLocalUser(mockUsers[0].profiles[0].id)
.then((user) => {
expect(user).to.have.property('username', mockUsers[0].username);
});
});
it('should not find the user when we give the wrong credentials', () => {
return UsersService
.findLocalUser(mockUsers[0].profiles[0].id, '1Coral!-<nope>')
.then((user) => {
expect(user).to.equal(false);
});
});
});
describe('#createLocalUser', () => {