Example #1
0
 def GET(self, id):
     form = editpwd_form()
     req = web.ctx.req
     req.update({
         'form': form,
         })
     return admin_render.user_editpwd(**req)
Example #2
0
 def GET(self, id):
     form = editpwd_form()
     req = web.ctx.req
     req.update({
         'form': form,
     })
     return admin_render.user_editpwd(**req)
Example #3
0
 def POST(self, id):
     form = editpwd_form()
     if not form.validates():
         req = web.ctx.req
         req.update({
             'form': form,
             })
         return admin_render.user_editpwd(**req)
     change_password(int(id), form.d)
     raise web.seeother('/user/index')
Example #4
0
 def POST(self, id):
     form = editpwd_form()
     if not form.validates():
         req = web.ctx.req
         req.update({
             'form': form,
         })
         return admin_render.user_editpwd(**req)
     change_password(int(id), form.d)
     raise web.seeother('/user/index')