57 Commits

Author SHA1 Message Date
Christopher Allan Webber
269943a645 We should redirect after verify_email to the user's homepage 2011-07-31 15:09:52 -05:00
Christopher Allan Webber
dce5c9cb9b Remove this superfluous "registration successful" message 2011-07-29 08:44:47 -05:00
Christopher Allan Webber
f73f4c4b84 Log in user after regitration 2011-07-29 08:43:59 -05:00
Christopher Allan Webber
0bc036209d Redirect to the user's profile after registration
- Updated the view
 - Updated the tests
 - Fixed a weirdness in the registration view where the 'user'
   variable used to be called 'entry'
2011-07-29 08:22:26 -05:00
Christopher Allan Webber
7074304c91 Remove the verification needed page 2011-07-29 08:14:02 -05:00
Christopher Allan Webber
61927e6e80 resend_activation should give the user a message and redirect them to their user_home 2011-07-29 08:09:13 -05:00
Deb
6ae8b541f9 removed email variables from globals module 2011-07-12 21:21:35 -04:00
Christopher Allan Webber
7b31a11c80 Removing trailing whitespace from this file 2011-07-09 09:02:57 -05:00
Christopher Allan Webber
166dc91aca Add a warning to the user that registrations are disabled. 2011-07-09 09:02:17 -05:00
Rasmus Larsson
13bb1d676e Updated the loginpage to not show a link to register if registrations are disabled 2011-07-09 15:19:55 +02:00
Rasmus Larsson
13677ef97a Added configuration variable to toggle registrations, if disabled the registration page redirects to index and no link to register is shown 2011-07-09 15:12:00 +02:00
Christopher Allan Webber
fe80cb06c4 Also encourages editing your profile and submitting images 2011-07-06 22:52:08 -05:00
Caleb Forbes Davis V
e054ae9b3d allows using messaging instead of verify_email.html to pass tests
* re-instated verification_successful flag
* modified test_auth to verify nav to user_pages/user.html template
2011-07-04 20:04:00 -05:00
Caleb Forbes Davis V
cfe46f3e68 uses the messaging system to notify user of result of verification check
Feature #424 - Use messaging system for email verifification check response
* uses add_message in verify_email and routes to the user page, bypassing
  verify_email.html
2011-07-04 19:42:45 -05:00
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