Liran Tal
6db8a4e4fa
Major Fixing and Refactoring tests
...
1. Refactoring variables usage through-out the tests
2. Fixing correct error handler tests were previously these would report a false positive isue
3. Fixing recent unit tests to be added as part of the main save method suite
4. Fixing an issue with the tests which didn't clean the user1 entry in the db and so tests following it would fail regardless of the validation
5. Fixing one test to actually be valid use case
2015-08-26 22:54:08 +03:00
Cody B. Daig
5c287f583b
[fix] Was storing a 6 char password in plain text [ fixes #829 ]
2015-08-20 09:26:07 -07:00
Cody B. Daig
74f58bbbd6
[test] Allow an email with sub domains
2015-08-19 19:08:44 -07:00
Sebastien Vaucouleur
851973f459
Fixed end tags in page header
2015-08-14 17:26:55 +02:00
Liran Tal
86b16c93f6
Merge pull request #758 from trainerbill/PathRefactor
...
Initial commit to return /client to the URL include paths
2015-08-14 17:21:49 +03:00
Liran Tal
89050d5628
Adding suite of tests for the e-mail validation field in the users model
2015-08-13 21:56:19 +03:00
Andrew Throener
d319f9203f
Initial commit to return /client to the URL include paths
...
Conflict Resolve
Fixed Karma testing
Added back cacheIDFromPath as I am not sure what that does. Just removed the replaceing of /client
2015-08-13 11:07:02 -05:00
Liran Tal
609d95824d
Merge pull request #771 from lirantal/bugfix/fix_user_module_async_tests
...
Fixing user model test's last test which fail or report a false positive
2015-08-13 13:42:19 +03:00
Ryan Hutchison
cb9d7e3db6
fix indentation
2015-08-11 01:01:12 -04:00
Liran Tal
463f5b944f
fixing up a user model test which was not setup correctly without the async done() callback, which led to false postivies. Adding timeouts to the test ensures that the test completes in time, otherwise mocha's 2s timeout will fail the test
2015-08-08 00:42:11 +03:00
Liran Tal
c967a98562
refactoring the async nature in the user model tests to account for mocha 2 second timeouts causing travis-ci build fails
2015-08-06 16:49:50 +03:00
Liran Tal
346ebd6a67
re-factoring the server model tests to create user model from schema only during tests, so that we can re-use mongodb's _v versioning fields, and also cleaning up user tests on each test iteration
2015-08-05 14:08:09 +03:00
Ryan Hutchison
2747df6310
BUG: Removed a ng-binding to article.content in user-list.client.view.html
2015-07-31 23:45:56 -04:00
Ryan Hutchison
ef3a3f9548
formatting reboot (space-2 and consistency)
...
JSCS fixes
update editorconfig
2015-07-31 10:04:02 -04:00
Ilan Biala
612a76cda6
Merge pull request #728 from cdriscol/angular_tests
...
Add client side tests
Fixes #663
2015-07-29 10:31:29 -04:00
Igor Freire
e6a35a7f9a
Enable redirection to previous page after login
...
Two different strategies are adopted, one for when the user authenticates locally and the other through providers. When authenticating locally, the signin function in the client controller redirects to the previous state (storing and using a state name) after successful login. When authenticating through a provider, the first call to provider stores the previous URL (not state, URL) in the session. Then, when provider actually calls the authentication callback, session redirect_to path is used for redirecting user.
2015-07-29 10:55:47 -03:00
cdriscol
d5ea5c99d2
Adding client test coverage.
2015-07-29 06:51:38 -06:00
Ryan Hutchison
4bbc4a30f6
add user route tests
2015-07-28 18:50:11 -04:00
Ryan Hutchison
839f805172
BUG: fix admin access (blocking user PUT)
2015-07-28 18:50:11 -04:00
Ryan Hutchison
60660204ac
Admin module base & user admin implementation.
...
update displayName
implements #700 (client-side role security) on angular routes.
2015-07-24 20:03:35 -04:00
Liran Tal
c8880ea65d
Merge pull request #700 from trainerbill/requireLogin
...
Require login
2015-07-25 01:18:33 +03:00
Andrew Throener
1b54d35305
Final Clean Up after code review
2015-07-24 17:06:55 -05:00
Liran Tal
c671f65c47
Merge pull request #693 from lirantal/feature/clean_angular_hashbang_urls
...
Feature/clean angular hashbang urls
2015-07-25 01:06:03 +03:00
Andrew Throener
03a4042a33
Updated routes and a logic fix
2015-07-24 16:43:46 -05:00
Liran Tal
de3b890f9d
removed /#! in user controllers
...
Resolved 0.4.0 related conflicts:
modules/users/server/controllers/users/users.authentication.server.controller.js
2015-07-25 00:39:28 +03:00
Igor Freire
e21805f20a
Prepare for role-based access control of states
2015-07-24 16:59:13 -03:00
Igor Freire
9fc88e6e5b
Filter states for which login is required during state change
...
A state parameter was added for the routes that require user authentication. Now, everytime a statechange occurs, the destination state is checked and user is redirected to signin page if necessary. Note the state parameter is added within `data`, so that nested states can inherent its value.
2015-07-24 16:17:14 -03:00
Ilan Biala
8a81cf0168
Merge pull request #688 from codydaig/bugfix/github_undefined_displayname
...
If displayName in GitHub is undefined use username
Fixes #519
2015-07-24 10:13:26 -04:00
Liran Tal
ac35f0fec8
adding couple more tests to confirm users model works as expected
2015-07-24 09:38:49 +03:00
Cody B. Daig
7605956c99
displayName undefined
2015-07-23 17:00:22 -07:00
Igor Freire
5d4d7cecfe
Make emails unique
...
Emails are made unique. When user attempts to sign in through a provider in which his email is one that is already registered, user is redirected to the signin page with an error passed as a query string parameter.
2015-07-17 14:52:27 -03:00
git-admin
a23290b46e
Use validator.js for email validation
2015-07-17 09:27:16 +02:00
trainerbill
a98a84fd20
Fix merge conflicts
2015-07-14 15:46:23 -05:00
Julien Mazé
c572ed7eec
JSHint test failing because of missing semicolon
...
I just cloned the branch and both gulp and grunt fail on the lint task because of the missing semicolon.
2015-07-12 20:54:59 +02:00
Liran Tal
bf79c17bd0
updating the schema save pre hook so that it checks for a modified version of the password field before it tries to re-calculate the new password to save for the user model
2015-07-12 19:25:40 +03:00
Ryan Hutchison
786c546d84
Update users.authentication.server.controller.js
2015-07-09 15:44:38 -04:00
Ryan Hutchison
75c80524b7
remove unused dependcies.
2015-07-09 14:23:31 -04:00
Ryan Hutchison
d0bb4a3cd3
duplicate controller. This was moved under settings/
2015-07-09 14:04:16 -04:00
Ryan Hutchison
b18a7dda99
bug: remove social account.
2015-07-09 13:49:48 -04:00
Ryan Hutchison
9e19493f50
Remove unused scope declarations.
2015-07-09 13:10:39 -04:00
Ryan Hutchison
b6818b63d3
fix btn-large class names.
2015-07-07 20:32:24 -04:00
Liran Tal
d5b22e35c4
addressing missing newlines and node 0.12 version for travis-ci
2015-07-05 01:12:54 +03:00
Andrew Throener
8694b7e976
PayPal Authentication
2015-07-02 07:44:58 -05:00
Liran Tal
67e96a4f22
0.4.0 branch merged into master
2015-07-02 12:08:09 +03:00
Ilan Biala
b1d95e0a34
Merge pull request #582 from simison/patch-9
...
Fix deprecated ExpressJS req.param('provider')
2015-06-03 19:41:35 -04:00
Ilan Biala
cd5db4ad4d
Merge pull request #575 from pgrodrigues/0.4.0
...
Abstract the local strategy login error to thwart hackers
2015-06-03 19:39:19 -04:00
Mikael Korpela
10d35d1df9
Fix deprecated ExpressJS req.param('provider')
...
>"Deprecated. Use either req.params, req.body or req.query, as applicable."
http://expressjs.com/api.html#req.param
2015-06-02 15:36:56 +03:00
Mikael Korpela
fcb6f90293
Remove un-used hasAuthorization and requiresLogin
...
Looks like these aren't needed now that we have ACL.
2015-05-29 00:36:07 +03:00
Pedro Rodrigues
e11ffda6e5
Add some abstraction to local strategy login error
2015-05-28 16:56:49 +01:00
Veikko Karsikko
c800c0a18f
Hide email address and remove trailing whitespaces
...
Email address should not be shown to client
2015-05-07 14:26:17 +03:00