3165 Commits

Author SHA1 Message Date
Rodney Ewing
117a27a3aa created a check_login_simple function 2013-05-27 08:58:09 -07:00
Rodney Ewing
68cc79eb4a added a register_user function 2013-05-27 08:58:09 -07:00
Rodney Ewing
81907fa0aa moved email_debug_message to gmg/tools/mail 2013-05-27 08:58:09 -07:00
Rodney Ewing
c6e46c6bd9 moved send_verification_email to auth/tools 2013-05-27 08:58:09 -07:00
Rodney Ewing
d7d5ce803d removed unused import 2013-05-27 08:58:09 -07:00
Rodney Ewing
53012d08c5 changed User model pw_hash field to nullable and added migrations 2013-05-27 08:58:09 -07:00
Rodney Ewing
3b8c733b98 no need for check_login with the new check_login_simple function 2013-05-27 08:54:25 -07:00
Rodney Ewing
3bcdc49088 renamed lib to tools 2013-05-27 08:43:12 -07:00
Rodney Ewing
cdc6b571e3 cleanup after merge 2013-05-27 08:39:34 -07:00
Rodney Ewing
bcd10ad663 Merge branch 'pre-auth' into basic_auth
Conflicts:
	mediagoblin/auth/tools.py
	mediagoblin/auth/views.py
	mediagoblin/db/migrations.py
	mediagoblin/plugins/basic_auth/lib.py
	mediagoblin/plugins/httpapiauth/__init__.py
	mediagoblin/plugins/piwigo/views.py
2013-05-27 08:25:22 -07:00
Elrond
199685831d Extract footer into bits/base_footer.html. 2013-05-26 13:29:02 +02:00
Rodney Ewing
1d321f1c71 created a check_login_simple function 2013-05-25 07:59:03 -07:00
Rodney Ewing
310a44d57c added a register_user function 2013-05-24 18:16:53 -07:00
Rodney Ewing
dd39fe6052 moved email_debug_message to gmg/tools/mail 2013-05-24 18:16:53 -07:00
Rodney Ewing
92783bc1fd moved send_verification_email to auth/tools 2013-05-24 18:16:53 -07:00
Rodney Ewing
61bfe64b23 removed unused import 2013-05-24 18:16:53 -07:00
Rodney Ewing
8ad734afc6 changed User model pw_hash field to nullable and added migrations 2013-05-24 18:16:53 -07:00
Rodney Ewing
377db0e7ff added error handling on bad token, fixed route, and added tests 2013-05-24 18:16:12 -07:00
Rodney Ewing
89e1563f68 added support for user to change email address 2013-05-24 18:16:12 -07:00
Rodney Ewing
f339b76a4e moving forgot_password views back to gmg/auth and cleanup 2013-05-24 18:09:57 -07:00
Rodney Ewing
9008e09941 fixed failing tests after rebase 2013-05-24 16:52:50 -07:00
Rodney Ewing
b194f29fe3 added gen_password_hash and check_password functions to auth/__init__ 2013-05-24 16:52:50 -07:00
Rodney Ewing
57e8be21bc added focus to form input
Conflicts:
	mediagoblin/auth/views.py
	mediagoblin/plugins/openid/views.py
2013-05-24 16:52:50 -07:00
Rodney Ewing
09ae2df4eb modified basic_auth.check_login to check that the user has a pw_hash first 2013-05-24 16:52:49 -07:00
Rodney Ewing
569873d8f0 changed occurances of form.data['whatever'] to form.whatever.data
Conflicts:
	mediagoblin/plugins/basic_auth/__init__.py
	mediagoblin/plugins/openid/__init__.py
2013-05-24 16:52:49 -07:00
Rodney Ewing
94d77e1fc1 check if password field present in basic_auth create_user 2013-05-24 16:52:49 -07:00
Rodney Ewing
5784c12d79 added a register_user function to be able to use in a plugin's register view, and modified auth/views.register to redirect to openid/register if appropriate. 2013-05-24 16:52:49 -07:00
Rodney Ewing
c94316bff4 Modified basic_auth plugin to work with modified auth plugin hooks. Added context variables. Removed basic_auth/tools which was previously renamed to basic_auth/lib. 2013-05-24 16:52:49 -07:00
Rodney Ewing
c3e3882e39 modified auth/__init__ hooks to work better with multiple plugins. Removed auth/lib.py. And added a basic_extra_verification function that all plugins will use. 2013-05-24 16:52:49 -07:00
Rodney Ewing
20583e8a4d removed check_login from db mixin 2013-05-24 16:52:49 -07:00
Rodney Ewing
ba016fda9a added Copyright header to basic_auth/forms.py 2013-05-24 16:52:49 -07:00
Rodney Ewing
14efa7bdf1 moved fake_login_attempt to plugins 2013-05-24 16:52:49 -07:00
Rodney Ewing
c9dec8b3cc log a previously logged in user when switched to no_auth mode 2013-05-24 16:52:49 -07:00
Rodney Ewing
d93cd2684b made basic_auth a default plugin 2013-05-24 16:52:49 -07:00
Rodney Ewing
dfd3f561af added tests for no_auth feature 2013-05-24 16:52:48 -07:00
Rodney Ewing
f644293ea8 changed from sys.exit() to raise AuthError for handling no_auth=false in config and no auth plugin present 2013-05-24 16:52:48 -07:00
Rodney Ewing
7a98eb73d9 existing test all passing now 2013-05-24 16:52:48 -07:00
Rodney Ewing
fa7232913c modified test .ini files and changed tests to use basic_auth bcrypt 2013-05-24 16:52:48 -07:00
Rodney Ewing
f65615eaf9 renamed hook as to no conflict with existing hook names 2013-05-24 16:52:48 -07:00
Rodney Ewing
5b6923ab84 renamed basic_auth/tools to basic_auth/lib 2013-05-24 16:52:48 -07:00
Rodney Ewing
0bd654a346 modified check_login function to return None instead of False to be able to have multiple plugins check_login 2013-05-24 16:52:48 -07:00
Rodney Ewing
9c2c9be79d moved bcrypt_gen_password_hash to basic_auth/tools and added gen_password_hash function to auth/__init__ 2013-05-24 16:52:48 -07:00
Rodney Ewing
d54cf48a33 moved bcrypt_check_password to basic_auth/tools from auth/lib 2013-05-24 16:52:48 -07:00
Rodney Ewing
744f1c83b9 add a check for authentication plugin on startup and respond according to no_auth config option. allows instance to be run w/o authentication 2013-05-24 16:52:48 -07:00
Rodney Ewing
b56b6b1e77 changed User model pw_hash field to nullable and added migrations 2013-05-24 16:52:48 -07:00
Rodney Ewing
0f3504e35b moved normalize_user_or_email_field to auth/tools.py from auth/forms.py 2013-05-24 16:52:47 -07:00
Rodney Ewing
58460a8301 moved forgot pw views to basic_auth plugin 2013-05-24 16:52:47 -07:00
Rodney Ewing
77e1aca8db added login.html template hook and basic_auth login template 2013-05-24 16:51:27 -07:00
Rodney Ewing
ebbc8fe069 reset mediagoblin.ini 2013-05-24 16:51:27 -07:00
Rodney Ewing
ee355966c8 basic_auth v0 plugin working 2013-05-24 16:51:27 -07:00