aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/auth/views.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-04-03 18:32:29 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-04-03 18:32:29 -0500
commitb058cf15f0ef79fcc4d24f2952e5d55ff0be46cc (patch)
treeab5a4143b5c26f5e700400c18dbb7da1a87ccce9 /mediagoblin/auth/views.py
parentd193896315ea3729759fa92e227c21073f4d4568 (diff)
downloadmediagoblin-b058cf15f0ef79fcc4d24f2952e5d55ff0be46cc.tar.lz
mediagoblin-b058cf15f0ef79fcc4d24f2952e5d55ff0be46cc.tar.xz
mediagoblin-b058cf15f0ef79fcc4d24f2952e5d55ff0be46cc.zip
We should use one instead of find_one to really make sure there's only
one such user in the database
Diffstat (limited to 'mediagoblin/auth/views.py')
-rw-r--r--mediagoblin/auth/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py
index 03c31576..d56dfa43 100644
--- a/mediagoblin/auth/views.py
+++ b/mediagoblin/auth/views.py
@@ -79,7 +79,7 @@ def login(request):
login_failed = False
if request.method == 'POST' and login_form.validate():
- user = request.db.User.find_one(
+ user = request.db.User.one(
{'username': request.POST['username']})
if user and user.check_login(request.POST['password']):