60 Commits

Author SHA1 Message Date
Matt Wright cd8982fa65 Merge pull request #342 from alexef/patch-1
Fail silently for get_user(None)
2015-05-02 13:30:01 -04:00
Matt Wright f2a5e4b614 Normalize import paths. Fixes #313 2015-05-02 13:25:26 -04:00
Alex Eftimie 7e4fc94601 Fail silently for get_user(None)
get_user(identifier) checks if the identifier is a number by trying to convert it to int. This works for strings, but in a particular case, when identifier is None, it fails. Checking for both TypeError and ValueError fixes it.
2014-11-19 14:11:58 +02:00
Matt Wright 37908ca335 Merge pull request #303 from graup/patch-1
Docs: Fixed typo and made punctuation more consistent.
2014-09-17 10:02:16 -04:00
Khalil El Kouhen 52b177cd2e Save changes to db after removal of role from user 2014-08-26 16:43:23 +01:00
Paul Grau dab2fc8c8b Docs: Fixed typo and made punctuation more consistent. 2014-08-19 18:01:03 +09:00
Matt Wright 510d1356a2 A bunch of adjustments to satisfy existing tests and even some new ones 2014-03-14 15:26:53 -04:00
Matt Wright f1447b2adc Work in progress 2013-12-19 16:12:29 -05:00
Matt Wright 1ae6bc3cf1 Add the ability to specify additional fields on the user model that can be used for logging in. 2013-10-16 14:00:36 -04:00
Matt Wright b1ac2598c0 Be sure to save user model when using add_role_to_user method for MongoEngineUserDatastore. Fixes #170 2013-10-16 10:55:56 -04:00
Matt Wright 73ff1c00b3 Fixes #146 2013-09-11 01:10:16 -04:00
Matt Wright 510c7bfa2a Merge pull request #151 from lupiter/fix-peewee-delete-role
Commit deleting role from user (peewee).
2013-08-12 06:58:47 -07:00
Wise, Catherine (ICT Centre, Acton) 7bef96c261 Commit deleting role from user (peewee). 2013-08-12 15:07:13 +10:00
Rotem Yaari 7d6b42e960 #147: only get by email_or_id if it is numeric 2013-08-11 20:15:06 +03:00
Matt Wright f401eac496 Merge branch 'develop' of github.com:mattupstate/flask-security into develop 2013-08-01 16:28:11 -04:00
Matt Wright 7c906de427 When logging in user lookups on email should be case insensitive 2013-08-01 16:22:28 -04:00
Matt Wright 9c03884441 Merge pull request #140 from joeyespo/ignore-validation-errors
Ignore validation errors in find_user
2013-07-25 14:28:01 -07:00
Joe Esposito 4ed4579738 Ignore validation errors in find_user 2013-07-24 16:08:19 -04:00
Matt Wright d87765fc3b PEP8 polish 2013-07-22 12:37:44 -04:00
Matt Wright f2d5245bd8 Import check to account for new version of MongoEngine 2013-05-03 12:13:58 -04:00
Matt Wright 38874433c7 Add tests for Peewee support 2013-04-04 18:09:55 -04:00
Matt Wright 4eda3e756f PEP8 polish 2013-04-04 16:39:50 -04:00
Matt Wright 4815b1afed Make find_user method for MongoEngineUserDatastore add contraints to query 2013-04-04 15:50:46 -04:00
Matt Wright adb2680289 Add change password endpoint 2013-02-01 18:21:43 -05:00
Manuel Ebert 51e06bdbb0 Fixes typo in find_or_create_role 2013-01-29 15:46:59 -08:00
Manuel Ebert 462fb1ae7e Convenience method for finding or creating a role
`datastore. find_or_create_role("admin")` will now always return a role
with the name admin; useful for initialisation,
2013-01-28 18:58:11 -08:00
Manuel Ebert aea5b91649 Method stub parameters and docs for find_role didn't match implementations. 2013-01-28 18:57:19 -08:00
Manuel Ebert 5687f2f5a9 Adds support for flask-peewee 2013-01-25 16:52:50 -08:00
Eskil Heyn Olsen 7f43acc167 Fix query for find_user 2013-01-01 11:28:31 -08:00
Matt Wright 7f002ac612 Fixes #40 2012-11-26 14:41:51 -05:00
Matt Wright f928db298d Refactor datastore implementation 2012-08-24 11:38:25 -04:00
Matt Wright 6e754ed356 Major refactoring. Got rid of exceptions/errors in favor of using simple return values. Update tests to ensure full coverage according to nose coverage plugin 2012-08-23 17:58:33 -04:00
Matt Wright 5964a99e57 Clean up 2012-08-22 16:37:07 -04:00
Matt Wright 58685f2bb4 Decent clean up. Get rid of AuthProvider class in favor of keeping it simple 2012-08-21 17:04:41 -04:00
Matt Wright 25e9d02a8a clean up 2012-08-21 11:52:49 -04:00
Matt Wright 828a973339 Add already confirmed scenario. Let datastore work without a request context 2012-08-21 01:50:40 -04:00
Matt Wright fa4668aa3f Use default values for encrypt_password and verify_password 2012-08-20 17:44:20 -04:00
Matt Wright c36fee7fda Clean up 2012-08-17 15:05:22 -04:00
Matt Wright a39f46854e Significant design change: commit data after some requests to avoid multiple database hits when using SQLALchemy 2012-08-17 13:19:40 -04:00
Matt Wright b7d71f8c59 Remove old commit param 2012-08-17 12:52:05 -04:00
Matt Wright 05bd2a5aae Full test coverage! 2012-08-14 15:57:07 -04:00
Matt Wright 58e2856612 No need to store remember_token in DB 2012-08-14 13:52:30 -04:00
Matt Wright 68dd972bfa Add more secure password storage via salt value and hmac 2012-07-18 13:27:30 -04:00
Matt Wright f170cb434c Use a stateful object instead of arbitrary assignment of extension on app object 2012-07-16 19:07:19 -04:00
Matt Wright 3cd20f0e33 Clean up 2012-07-13 12:02:43 -04:00
Matt Wright b9a6a9c5a8 Use itsdangerous for activation and password reset tokens so they do not need to be stored in the database 2012-07-11 15:06:54 -04:00
Matt Wright 49d3789f98 Fix up remember token 2012-07-10 16:23:20 -04:00
Matt Wright 2ea835ec9f Add a bunch of doc strings and add some more configuration values 2012-06-29 12:37:22 -04:00
Tristan Escalada efc93979d1 Adding back lost role/active functions
some functions must have gotten lost. Added them back.
_do_add_role, _do_remove_role, _do_toggle_active,
_do_deactive_user, _do_active_user, _prepare_role_modify_args
2012-06-18 20:02:35 -04:00
Matt Wright c20f244d66 Big code cleanup 2012-06-18 16:51:43 -04:00