aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/lib.py
Commit message (Collapse)AuthorAgeFilesLines
* Move DBModel._id -> DBModel.idSebastian Spaeth2012-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | We were refering to model._id in most of the code base as this is what Mongo uses. However, each use of _id required a) fixup of queries: e.g. what we did in our find() and find_one() functions moving all '_id' to 'id'. It also required using AliasFields to make the ._id attribute available. This all means lots of superfluous fixing and transitioning in a SQL world. It will also not work in the long run. Much newer code already refers to the objects by model.id (e.g. in the oauth plugin), which will break with Mongo. So let's be honest, rip out the _id mongoism and live with .id as the one canonical way to address objects. This commit modifies all users and providers of model._id to use model.id instead. This patch works with or without Mongo removed first, but will break Mongo usage (even more than before) I have not bothered to fixup db.mongo.* and db.sql.convert (which converts from Mongo to SQL) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Fix problems from pyflakes outputWill Kahn-Greene2012-06-031-1/+0
|
* Changes for 293. Tests pass, encode UTF8 on password on registration (and ↵Derek Moore2012-03-121-2/+3
| | | | also for subsequent logins once the user is created) is working.
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Dot-Notation for Users.fp_verification_keyElrond2011-12-051-1/+1
|
* Dot-Notation for Users.verification_keyElrond2011-12-051-1/+1
|
* Dot-Notation for Users.emailElrond2011-12-051-2/+2
|
* Dot-Notation for Users.usernameElrond2011-12-051-2/+2
|
* Dot-Notation for "_id"Elrond2011-11-151-2/+2
| | | | | | | | | Note: Migrations can't use "Dot Notation"! Migrations run on pymongo, not mongokit. So they can't use the "Dot Notation". This isn't really a big issue, as migrations are anyway quite mongo specific.
* Merge remote-tracking branch 'remotes/nyergler/pep8-ification'Christopher Allan Webber2011-11-131-1/+2
|\ | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
| * Whitespace and formatting cleanup.Nathan Yergler2011-10-011-1/+2
| | | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
* | Finished splitting util.py into separate files.Aaron Williamson2011-10-011-1/+1
| |
* | Moved common, translation, template, and url code out of util.py and into ↵Aaron Williamson2011-10-011-1/+2
|/ | | | tools/[file].py
* Merge branch 'gullydwarf-cfdv-f357_lost_password_functionality'Christopher Allan Webber2011-09-081-5/+35
|\ | | | | | | | | Conflicts: mediagoblin/auth/routing.py
| * Adjusting spacing between function argumentsChristopher Allan Webber2011-09-071-1/+1
| |
| * needed to access email_sender_address through mg_globals.app_configCaleb Forbes Davis V2011-08-281-1/+1
| | | | | | | | instead of mg_globals.email_sender_address.
| * Adding fotgot password functionalityAlejandro Villanueva2011-08-281-5/+35
| |
* | 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|/
* removed email variables from globals moduleDeb2011-07-121-1/+1
|
* mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-2/+2
|
* Use render_template utility so we can test whether or not this emailChristopher Allan Webber2011-06-051-11/+10
| | | | sends
* Moved the verification url generation string template to a global variableChristopher Allan Webber2011-06-051-5/+9
|
* Refactored the sending of verification emails.Aleksandar Micovic2011-06-021-0/+34
|
* Changes Mediagoblin -> MediaGoblin.Will Kahn-Greene2011-04-131-1/+1
|
* Clarified documentation on fake_login_attempt and restored bcrypt importChristopher Allan Webber2011-04-031-2/+5
|
* Added a fake_login_attempt utility.Christopher Allan Webber2011-04-031-1/+18
|
* We should return a unicode object in bcrypt_gen_password_hashChristopher Allan Webber2011-04-031-1/+1
|
* Basic authentication tools using py-bcryptChristopher Allan Webber2011-04-021-0/+66