93 Commits

Author SHA1 Message Date
Christopher Allan Webber
6e7ce8d1af mediagoblin.globals->mediagoblin.mg_globals 2011-06-12 17:27:37 -05:00
Christopher Allan Webber
23cc15c998 Use render_template utility so we can test whether or not this email
sends
2011-06-05 17:35:20 -05:00
Christopher Allan Webber
2c3fd5c5bf Moved the verification url generation string template to a global variable 2011-06-05 17:31:45 -05:00
Christopher Allan Webber
2262b2a9e1 Made a simple template rendering view and switched a bunch of code over to using it 2011-06-05 15:58:35 -05:00
Christopher Allan Webber
9038c9f9ac I have a strong preference for aligning all parameters in a function call. 2011-06-05 15:41:08 -05:00
Christopher Allan Webber
a7fcc027aa Merge remote branch 'remotes/elrond/idea/shortcuts' 2011-06-05 15:36:51 -05:00
Christopher Allan Webber
b8fbd81799 New password check error message 2011-06-05 15:33:07 -05:00
Elrond
9150244afa Create redirect shortcut and use it around
This is just replacing exc.HTTPFound(location=request.urlgen(...))
by redirect(request, ...). No magic.
2011-06-05 16:16:03 +02:00
Elrond
c9c2493435 Reformat render_to_response calls
Just a simple indentation and ordering change, no
functional change.
2011-06-05 16:16:03 +02:00
Elrond
1c63ad5d35 Create render_to_reponse and use it everywhere.
Just a shortcut for Response(render_template(...))
2011-06-05 16:16:03 +02:00
Christopher Allan Webber
b5d3aec615 Moving all views over to using util.render_template()! 2011-06-04 17:36:36 -05:00
Aleksandar Micovic
02d80437d1 Refactored the sending of verification emails. 2011-06-02 21:07:37 -04:00
Christopher Allan Webber
f80cdc5868 No reason for 'verification_successful = bool' here. 2011-06-02 16:04:17 -05:00
Christopher Allan Webber
a77d952aa6 No need for a method for generating the verification key as a method
on the class, can just do that in the view
2011-06-02 09:02:13 -05:00
Christopher Allan Webber
e0f8487005 Elrond put that ObjectId thing in the db.util module and wants us to
use that one ;)
2011-06-02 08:47:30 -05:00
Christopher Allan Webber
155f24f9f5 If a user doesn't provide a userid and a token to the verify_email function, might as well 404 2011-05-31 19:37:28 -05:00
Christopher Allan Webber
73a1bc85f1 Moving import to outside of this function 2011-05-31 19:31:23 -05:00
Christopher Allan Webber
5866d1a8fb Give a "proper" view for resending verification email 2011-05-31 19:29:36 -05:00
Aleksandar Micovic
b93a6a229e Added the ability to regenerate a verification key. 2011-05-31 17:14:23 -04:00
Aleksandar Micovic
28afb47ca8 Added a temporary verification page informing the user they need
to authenticate.
2011-05-30 23:51:30 -04:00
Jakob Kramer
db5912e358 remove all 'username_repr' stuff 2011-05-29 19:49:25 +02:00
Jakob Kramer
ff6b9f7279 don't import 're' 2011-05-29 19:17:44 +02:00
Jakob Kramer
ce72a1bb15 this should fix #354 2011-05-29 19:15:46 +02:00
Christopher Allan Webber
3eae207c54 [to_email] rather than list(to_email) which makes a nasty series like ['e','m','a','i','l'] 2011-05-07 22:44:37 -05:00
Joar Wandborg
4942b63711 Removed unused variable
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-08 01:58:58 +02:00
Joar Wandborg
4c093e85c7 Made changes according to http://bugs.foocorp.net/issues/271#note-7
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-08 00:55:57 +02:00
Joar Wandborg
5c42a82c5a Added functionality to send out verification email upon successful registration
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-07 03:08:09 +02:00
Joar Wandborg
db1a438f3e Added functionality to support user email verification, email = TBD, verification = done.
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-03 19:51:19 +02:00
Christopher Allan Webber
574d1511d6 Probably better to request.POST.get? 2011-04-23 12:54:11 -05:00
Will Kahn-Greene
8e1e744d27 Changes Mediagoblin -> MediaGoblin. 2011-04-13 10:04:30 -04:00
Christopher Allan Webber
146ad23e9b Herp derp GPL notice blocks should even be on routing. 2011-04-03 18:58:23 -05:00
Christopher Allan Webber
b058cf15f0 We should use one instead of find_one to really make sure there's only
one such user in the database
2011-04-03 18:32:29 -05:00
Christopher Allan Webber
d193896315 Also handle when there is no such user 2011-04-03 18:28:17 -05:00
Christopher Allan Webber
b97232fa2f Working logout function 2011-04-03 18:23:40 -05:00
Christopher Allan Webber
a37767172b Logins seem to work. 2011-04-03 17:05:30 -05:00
Christopher Allan Webber
51479a1d22 Clarified documentation on fake_login_attempt and restored bcrypt import 2011-04-03 16:37:15 -05:00
Christopher Allan Webber
692fd1c981 starting to write login code 2011-04-03 16:36:03 -05:00
Christopher Allan Webber
c15c9843b4 Added a fake_login_attempt utility. 2011-04-03 15:31:16 -05:00
Christopher Allan Webber
f5def6fe23 Use the passwordfield for password fields, obviously ;o 2011-04-03 15:02:06 -05:00
Christopher Allan Webber
73cb7b8efc Return an HTTPFound, not HTTPTemporaryRedirect 2011-04-03 14:58:51 -05:00
Christopher Allan Webber
2418182016 Registering almost works right :) 2011-04-03 13:35:18 -05:00
Christopher Allan Webber
e0bc23d370 We should return a unicode object in bcrypt_gen_password_hash 2011-04-03 13:33:45 -05:00
Christopher Allan Webber
6755f50e8e Basic authentication tools using py-bcrypt 2011-04-02 10:29:54 -05:00