Switch to unified view

a/Allura/allura/controllers/auth.py b/Allura/allura/controllers/auth.py
...
...
92
        c.form = F.registration_form
92
        c.form = F.registration_form
93
        return dict()
93
        return dict()
94
94
95
    @expose()
95
    @expose()
96
    @validate(F.registration_form, error_handler=create_account)
96
    @validate(F.registration_form, error_handler=create_account)
97
    def save_new(self,display_name=None,username=None,pw=None, **kw):
97
    def save_new(self, display_name=None, username=None, pw=None, **kw):
98
        user = M.User.register(
98
        user = M.User.register(
99
            dict(username=username,
99
            dict(username=username,
100
                 display_name=display_name,
100
                 display_name=display_name,
101
                 password=pw))
101
                 password=pw))
102
        plugin.AuthenticationProvider.get(request).login(user)
102
        plugin.AuthenticationProvider.get(request).login(user)