Matt Wright
34b3bf9e80
Fix CSRF functionality for LoginForm
...
The login form was not respecting csrf validation. I've adjusted the tests as well to always send a CSRF token along. This now requires all requests to pass a csrf token. If performing plain AJAX requests the token will have to be extracted from the form in some way. Fixes #86
2013-02-01 17:23:18 -05:00
Matt Wright
b82a8d681d
Merge pull request #79 from maebert/develop
...
Fixes dependencies
2013-01-25 08:08:05 -08:00
Manuel Ebert
29af22bd6e
Updated requirements.txt to reflect setup.py
...
Also fixes a typo (`passlib=1.5.3` is not a valid line)
2013-01-24 16:24:50 -08:00
Manuel Ebert
68f8127286
Updates dependencies to Flask>=0.9
...
after_this_request was introduced in 0.9-dev
2013-01-24 16:23:48 -08:00
Matt Wright
84759b5dbd
Merge pull request #73 from apahomov/multiple-auth-mechanisms
...
Multiple auth mechanisms
2013-01-16 19:37:55 -08:00
apahomov
39f62374aa
Added tests
2013-01-15 10:30:48 +04:00
Matt Wright
4de2cbcf9f
Merge pull request #72 from eskil/please_login_msg
...
Fix passing category to login required message
2013-01-14 07:17:05 -08:00
apahomov
3f9ca423bd
Calling auth methods
2013-01-14 16:11:09 +04:00
apahomov
bbed019ca5
Add auth_required decorator that allows multiple auth mechanisms
2013-01-14 15:45:18 +04:00
Eskil Heyn Olsen
3081d76787
Fix passing category to login required message
2013-01-13 23:25:16 -08:00
apahomov
1a0ddff82b
Get auth token from JSON request.
2013-01-14 10:54:48 +04:00
Matt Wright
e9b40a12c8
Fix for Python 2.6
2013-01-14 00:26:46 -05:00
Matt Wright
6adc26a897
Get rid of strftime in favor of total_seconds. Fixes #67
2013-01-09 14:02:42 -05:00
Matt Wright
9726726e5a
Merge pull request #68 from eskil/fix_tests
...
remove import that was left by accident
2013-01-09 07:35:07 -08:00
Eskil Heyn Olsen
6202abb75c
remove import that was left by accident
2013-01-08 18:41:16 -08:00
Matt Wright
3c65923d33
Merge pull request #66 from eskil/registerform
...
Update documentation reg. configurable forms
2013-01-08 08:16:30 -08:00
Eskil Heyn Olsen
daed6e1064
Update documentation reg. configurable forms
2013-01-08 07:45:13 -08:00
Matt Wright
f566f41fb3
Merge pull request #58 from eskil/registerform
...
Configurable forms
2013-01-08 07:10:14 -08:00
Eskil Heyn Olsen
e4190a0315
Add kwargs for configurable forms.
...
Specifically list out the kwargs so we'll get an interpreter error
on a bad name.
2013-01-07 21:43:33 -08:00
Eskil Heyn Olsen
ca0d1d0b50
All unit-tests for configurable forms
2013-01-07 21:43:27 -08:00
Matt Wright
4e57226a1b
Merge pull request #65 from KangOl/develop
...
take advantage of passlib CryptContext
2013-01-07 21:34:08 -08:00
Christophe Simonis
a89b76d648
do not break API. add a new function to verify and update password
2013-01-08 01:01:02 +01:00
Christophe Simonis
d0497fc886
update password automatically
2013-01-08 00:49:20 +01:00
Christophe Simonis
a1c007599f
allow change of hash scheme
2013-01-08 00:15:21 +01:00
Eskil Heyn Olsen
81040a57a6
Views get forms from _security
2013-01-06 20:20:06 -08:00
Eskil Heyn Olsen
09fe5a2cb7
Make test_app take kwargs
2013-01-06 20:00:13 -08:00
Matt Wright
d760aa41c5
Merge branch 'master' into develop
2013-01-06 21:01:53 -05:00
Matt Wright
53576c6013
Set Flask-Login messages
2013-01-06 21:01:35 -05:00
Matt Wright
029466830d
Bump version number to 1.5.4
1.5.4
2013-01-06 20:43:02 -05:00
Matt Wright
31595196fc
Update CHANGES
2013-01-06 20:42:51 -05:00
Matt Wright
2a0b582911
Change csrf_enabled parameter in forms to check for incoming JSON data. Fix #63
2013-01-06 20:41:01 -05:00
Matt Wright
63fb30daf8
Merge pull request #64 from eskil/signals
...
Document and unit-test signals.
2013-01-06 17:38:44 -08:00
Eskil Heyn Olsen
675b29b4fe
Minor style fixes
2013-01-06 14:40:09 -08:00
Eskil Heyn Olsen
075ccf6a82
Add some more tests of signals
2013-01-06 14:33:15 -08:00
Eskil Heyn Olsen
ae6f3b6753
Document and unit-test the signals.
...
Adds description of signals to docmentation. Adds unit-tests of
signal behaviour and tests parameters.
2013-01-06 14:12:18 -08:00
Eskil Heyn Olsen
1a87a4cd0c
Fix to RegisterForm.to_dict.
...
Only add fields that are also attributes on the
datastorage.user_model.
2013-01-03 23:29:50 -08:00
Eskil Heyn Olsen
f83092865b
Configurable forms, issue:49
2013-01-03 22:00:29 -08:00
Eskil Heyn Olsen
b15736accd
RegisterFormMixin can now to_dict all fields.
...
It adds a to_dict function that uses inspect to add all wtf Field
to the returned dict. This allows extensions to the register form
to easily add fields that will be passed to the datastore's
create_user function.
2013-01-03 19:07:00 -08:00
Matt Wright
79ce6f00d3
Merge pull request #56 from eskil/fix_add_role
...
Fix query for find_user
2013-01-01 15:14:04 -08:00
Eskil Heyn Olsen
7f43acc167
Fix query for find_user
2013-01-01 11:28:31 -08:00
Matt Wright
f8fbd6cec8
Bump version number to 1.5.3
1.5.3
2012-12-23 16:47:20 -05:00
Matt Wright
9d11dd0787
Update dependency rules
2012-12-23 16:47:14 -05:00
Matt Wright
4c31b6b689
Merge pull request #51 from joshpurvis/mongo-quickstart
...
Reorganized Quickstart and added MongoDB example.
2012-12-19 08:26:42 -08:00
Josh Purvis
d468fae0ea
Reorganized Quickstart and added MongoDB example.
2012-12-19 11:17:06 -05:00
Matt Wright
3a5a1b4f52
Bump version number to 1.5.2
1.5.2
2012-12-11 15:15:01 -05:00
Matt Wright
0724bd12a5
Remove stray file
2012-12-11 15:13:35 -05:00
Matt Wright
c7e3e642fa
Update CHANGES
2012-12-11 15:11:51 -05:00
Matt Wright
ee4c8f2a3f
Fix login_user method to actually return a True or False value as mentioned in mattupstate/flask-social-example#8
2012-12-11 15:10:26 -05:00
Matt Wright
1092ffc9ea
Fix #45
2012-11-26 16:21:05 -05:00
Matt Wright
f4b6eb9869
Fix table
2012-11-26 15:03:18 -05:00