Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(20)  |  Call(20)  |  Derive(0)  |  Import(0)
Encode password with current password manager 

src/p/t/ptah_crowd-0.1/ptah_crowd/user.py   ptah_crowd(Download)
        user = tinfo.create(
            title=data['name'], login=data['login'], email=data['login'])
        user.password = ptah.pwd_tool.encode(data['password'])
 
        crowd = CrowdFactory()
        user.login = data['login']
        user.email = data['login']
        user.password = ptah.pwd_tool.encode(data['password'])
 
        # update props
        sm = self.request.registry
 
        self.context.password = ptah.pwd_tool.encode(data['password'])
 
        self.message("User password has been changed.")

src/p/t/ptahcrowd-0.2/ptahcrowd/user.py   ptahcrowd(Download)
            name=data['name'], login=data['login'], email=data['login'],
            validated=data['validated'], suspended=data['suspended'])
        user.password = ptah.pwd_tool.encode(data['password'])
 
        tinfo.add(user)
 
        if data['password'] is not pform.null:
            user.password = ptah.pwd_tool.encode(data['password'])
 
        self.request.add_message(_("User properties have been updated."), 'info')

src/p/t/ptahcrowd-HEAD/ptahcrowd/user.py   ptahcrowd(Download)
            name=data['name'], login=data['login'], email=data['login'],
            validated=data['validated'], suspended=data['suspended'])
        user.password = ptah.pwd_tool.encode(data['password'])
 
        tinfo.add(user)
 
        if data['password'] is not pform.null:
            user.password = ptah.pwd_tool.encode(data['password'])
 
        self.request.add_message(_("User properties have been updated."), 'info')

src/p/t/ptah_crowd-0.1/ptah_crowd/registration.py   ptah_crowd(Download)
 
        # set password
        user.password = ptah.pwd_tool.encode(data['password'])
        CrowdFactory().add(user)
 

src/p/t/ptahcrowd-0.2/ptahcrowd/registration.py   ptahcrowd(Download)
 
        # set password
        user.password = ptah.pwd_tool.encode(data['password'])
 
        return tinfo.add(user)

src/p/t/ptahcrowd-0.2/ptahcrowd/populate.py   ptahcrowd(Download)
            login=crowd_cfg['admin-login'],
            email=ptah_cfg['email_from_address'])
        user.password = ptah.pwd_tool.encode(crowd_cfg['admin-password'])
        user.validated = True
 

src/p/t/ptahcrowd-HEAD/ptahcrowd/registration.py   ptahcrowd(Download)
 
        # set password
        user.password = ptah.pwd_tool.encode(data['password'])
 
        return tinfo.add(user)

src/p/t/ptahcrowd-HEAD/ptahcrowd/populate.py   ptahcrowd(Download)
            login=crowd_cfg['admin-login'],
            email=ptah_cfg['email_from_address'])
        user.password = ptah.pwd_tool.encode(crowd_cfg['admin-password'])
        user.validated = True
        user.suspended = False

src/p/t/ptahcrowd-HEAD/ptahcrowd/tests/test_provider.py   ptahcrowd(Download)
                         login='test',
                         email='test@ptahproject.org',
                         password=ptah.pwd_tool.encode('12345'))
        ptah.get_session().add(user)
        ptah.get_session().flush()
        user = CrowdUser(name='test', login='test',
                         email='test@ptahproject.org',
                         password=ptah.pwd_tool.encode('12345'))
        ptah.get_session().add(user)
        ptah.get_session().flush()

src/p/t/ptah-HEAD/ptah/tests/test_password.py   ptah(Download)
        cfg['pwd_manager'] = 'plain'
 
        encoded = ptah.pwd_tool.encode('12345')
        self.assertEqual(encoded, '{plain}12345')
 

  1 | 2  Next