Esempio n. 1
0
def task_enableuser(environ, start_response):
    request = environ['werkzeug.request']

    params = {'cookies': ['wakaadmin'], 'form': ['mpass', 'username']}

    kwargs = kwargs_from_params(request, params)
    kwargs['disable'] = False

    return staff_interface.edit_staff_proxy(**kwargs)
Esempio n. 2
0
def task_enableuser(environ, start_response):
    request = environ['werkzeug.request']

    params = {'cookies': ['wakaadmin'], 'form': ['mpass', 'username']}

    kwargs = kwargs_from_params(request, params)
    kwargs['disable'] = False

    return staff_interface.edit_staff_proxy(**kwargs)
Esempio n. 3
0
def task_enableuser(environ, start_response):
    request = environ['werkzeug.request']

    kwargs = kwargs_from_params(request,
        form=['mpass', 'username'],
        admin=True,
    )
    kwargs['disable'] = False

    return staff_interface.edit_staff_proxy(**kwargs)
Esempio n. 4
0
def task_enableuser(environ, start_response):
    request = environ['werkzeug.request']

    kwargs = kwargs_from_params(request,
        form=['mpass', 'username'],
        admin=True,
    )
    kwargs['disable'] = False

    return staff_interface.edit_staff_proxy(**kwargs)
Esempio n. 5
0
def task_edituser(environ, start_response):
    request = environ['werkzeug.request']

    params = {'form': ['mpass', 'usernametoedit', 'newpassword', 'newclass',
                       'originalpassword'], 
              'cookies': ['wakaadmin']}

    kwargs = kwargs_from_params(request, params)
    kwargs['username'] = kwargs.pop('usernametoedit')
    kwargs['reign'] = request.form.getlist('reign')

    return staff_interface.edit_staff_proxy(**kwargs)
Esempio n. 6
0
def task_edituser(environ, start_response):
    request = environ['werkzeug.request']

    kwargs = kwargs_from_params(request,
        form=['mpass', 'usernametoedit', 'newpassword', 'newclass',
              'originalpassword'],
        admin=True,
    )
    kwargs['username'] = kwargs.pop('usernametoedit')
    kwargs['reign'] = request.form.getlist('reign')

    return staff_interface.edit_staff_proxy(**kwargs)