Christopher Allan Webber
d1a6432645
Avoiding using '$or' query modifier since that's newer-mongo only.
2011-09-07 23:23:44 -05:00
Christopher Allan Webber
34fddf47f0
Resent verification email template and view aren't used anymore. Removing!
2011-09-07 19:42:56 -05:00
Christopher Allan Webber
daa26200c7
Changing the forgot password urls so they all start under /auth/forgot_password/
2011-09-07 19:40:00 -05:00
Christopher Allan Webber
63bf10f9a6
Adjusting spacing between function arguments
2011-09-07 19:37:25 -05:00
Caleb Forbes Davis V
4bcaf9f32a
for readability, and adds unit test for expired token
2011-09-05 18:57:06 -05:00
Caleb Forbes Davis V
8d1c9863b6
refactors verify_forgot_password
2011-09-05 14:06:01 -05:00
Christopher Allan Webber
6be33a7780
Removing description field cruft that mostly existed for testing purposes. :)
2011-09-04 22:26:57 -05:00
Will Kahn-Greene
12a100e4d8
508. Updates copyright/license information
2011-09-01 20:50:19 -04:00
Christopher Allan Webber
2886b340d3
Merge remote branch 'remotes/jwandborg/f403_ability_to_delete'
2011-08-30 20:16:47 -05:00
Christopher Allan Webber
04a7b06d61
Giving schendje some auth registration descriptions so he can style them!
2011-08-29 10:43:11 -05:00
Caleb Forbes Davis V
e1105f5dcb
Generalizes error model for change password verification
...
- 404s instead of 'user not found' will limit leaking user profile
information to the browser.
- Also fixed the wording on the login page to make it clear you are
changing the password, not sending yourself your old one!
2011-08-29 00:19:54 -05:00
Caleb Forbes Davis V
24966c43bd
Avoids informing browser whether the username or email is a match
...
- pretends to have sent the email with the URL to change the password
regardless of whether or not the email was actually sent. This
avoids leaking user information to the browser
2011-08-29 00:18:35 -05:00
Caleb Forbes Davis V
f85909c061
needed to access email_sender_address through mg_globals.app_config
...
instead of mg_globals.email_sender_address.
2011-08-28 21:41:42 -05:00
Alejandro Villanueva
25ba955e20
Adding fotgot password functionality
2011-08-28 20:08:14 -05:00
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
7960ac985f
Converting all forms to use the "fake/null" gettext conversion function
...
Gettext doesn't actually get run right in the form but we do need to
wrap the strings in _() so stuff extracts :)
2011-08-10 12:07:59 -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
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