154 Commits

Author SHA1 Message Date
Mark Holmquist
08750772ea + 'confirm' section for confirmation dialogues
+ implemented delete functionality
* fixed several instances of 'must be an instance of unicode, not str'
2011-08-22 02:57:40 -07:00
Christopher Allan Webber
de12b4e773 Use render_404 EVERYWHERE! 2011-08-20 15:57:24 -05:00
Christopher Allan Webber
788272f300 PEP-8ing the keyword argument passing here 2011-08-11 22:44:47 -05:00
Christopher Allan Webber
e7f518cc94 Merge remote branch 'remotes/gullydwarf-cfdv/b488_email_validation_assumes_active_login' 2011-08-11 22:44:21 -05:00
Christopher Allan Webber
9f6ea47586 If both the username and the email checks fail, warn about both at the same time 2011-08-11 20:37:21 -05:00
Christopher Allan Webber
873e4e9d2d Also normalize user's emails to .lower() when we accept the user. 2011-08-11 20:34:12 -05:00
Alejandro Villanueva
0bf099d753 Checks if the email(lowercase) have been used before to register a user 2011-08-11 20:32:55 -05:00
Christopher Allan Webber
dc49cf600a Making the users_with_username function call in the register view slightly cleaner 2011-08-11 20:15:55 -05:00
Christopher Allan Webber
4b1adc132c Marked relevant strings in python views/forms for translation via ugettext 2011-08-08 22:53:39 -05:00
Caleb Forbes Davis V
d88e1d15c7 Bug #488 - email validation assumes active login
- loads username from user object instead of session to remove
  dependency on active login
2011-08-08 00:10:46 -05:00
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
61927e6e80 resend_activation should give the user a message and redirect them to their user_home 2011-07-29 08:09:13 -05: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
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
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
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