changeset 1644:59c26a9aba63 beta

typo fixes
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 02 Nov 2011 22:41:02 +0200
parents cb8b4b7ac6e4
children bf68da506df3
files rhodecode/controllers/admin/users.py rhodecode/lib/auth.py
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/controllers/admin/users.py	Wed Nov 02 20:33:02 2011 +0200
+++ b/rhodecode/controllers/admin/users.py	Wed Nov 02 22:41:02 2011 +0200
@@ -71,9 +71,9 @@
         # url('users')
 
         user_model = UserModel()
-        login_form = UserForm()()
+        user_form = UserForm()()
         try:
-            form_result = login_form.to_python(dict(request.POST))
+            form_result = user_form.to_python(dict(request.POST))
             user_model.create(form_result)
             h.flash(_('created user %s') % form_result['username'],
                     category='success')
--- a/rhodecode/lib/auth.py	Wed Nov 02 20:33:02 2011 +0200
+++ b/rhodecode/lib/auth.py	Wed Nov 02 22:41:02 2011 +0200
@@ -141,7 +141,8 @@
 
 def authfunc(environ, username, password):
     """
-    Dummy authentication function used in Mercurial/Git/ and access control,
+    Dummy authentication wrapper function used in Mercurial and Git for 
+    access control.
 
     :param environ: needed only for using in Basic auth
     """