Show More
@@ -71,9 +71,9 class UsersController(BaseController): | |||||
71 | # url('users') |
|
71 | # url('users') | |
72 |
|
72 | |||
73 | user_model = UserModel() |
|
73 | user_model = UserModel() | |
74 |
|
|
74 | user_form = UserForm()() | |
75 | try: |
|
75 | try: | |
76 |
form_result = |
|
76 | form_result = user_form.to_python(dict(request.POST)) | |
77 | user_model.create(form_result) |
|
77 | user_model.create(form_result) | |
78 | h.flash(_('created user %s') % form_result['username'], |
|
78 | h.flash(_('created user %s') % form_result['username'], | |
79 | category='success') |
|
79 | category='success') |
@@ -141,7 +141,8 def generate_api_key(str_, salt=None): | |||||
141 |
|
141 | |||
142 | def authfunc(environ, username, password): |
|
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 | :param environ: needed only for using in Basic auth |
|
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