code: def p_changepassword(self):
          '''
          Changing password.
          '''
  
          post_data = self.get_post_data()
  
          usercheck = MUser.check_user(self.userinfo.uid, post_data['rawpass'])
          if usercheck == 1:
              MUser.update_pass(self.userinfo.uid, post_data['user_pass'])
              output = {'changepass ': usercheck}
          else:
              output = {'changepass ': 0}
          return json.dump(output, selff p_changepassword(self):
          '''
          Changing password.
          '''
  
          post_data = self.get_post_data()
  
          usercheck = MUser.check_user(self.userinfo.uid, post_data['rawpass'])
          if usercheck == 1:
              MUser.update_pass(self.userinfo.uid, post_data['user_pass'])
              output = {'changepass ': usercheck}
          else:
              output = {'changepass ': 0}
          return json.dump(output, self)
docs: Changing password.