Show More
@@ -71,9 +71,9 b' class UsersController(BaseController):' | |||
|
71 | 71 | # url('users') |
|
72 | 72 | |
|
73 | 73 | user_model = UserModel() |
|
74 |
|
|
|
74 | user_form = UserForm()() | |
|
75 | 75 | try: |
|
76 |
form_result = |
|
|
76 | form_result = user_form.to_python(dict(request.POST)) | |
|
77 | 77 | user_model.create(form_result) |
|
78 | 78 | h.flash(_('created user %s') % form_result['username'], |
|
79 | 79 | category='success') |
@@ -141,7 +141,8 b' def generate_api_key(str_, salt=None):' | |||
|
141 | 141 | |
|
142 | 142 | def authfunc(environ, username, password): |
|
143 | 143 | """ |
|
144 |
Dummy authentication function used in Mercurial |
|
|
144 | Dummy authentication wrapper function used in Mercurial and Git for | |
|
145 | access control. | |
|
145 | 146 | |
|
146 | 147 | :param environ: needed only for using in Basic auth |
|
147 | 148 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now