can you print
db.auth_user.password.validate('b')[0]
and check the problem is not there?
On Oct 17, 10:21 pm, steve van christie <[email protected]>
wrote:
> during login it return invalid login, the user first name, last name and
> email can be inserted but the password is blank on the database, so that i
> can't login, according to the example script, i've already define it's
> password.
> i don't know where is my fault, i've using web2py 1.99.2 stable and python
> 2.7.
> do you have any way out to define the user password on db wizard populate?
>
> thank you so much before.
>
> On Tue, Oct 18, 2011 at 10:15 AM, Massimo Di Pierro <
>
>
>
>
>
>
>
> [email protected]> wrote:
> > In which way it does not work?
>
> > On Oct 17, 9:59 pm, 黄祥 <[email protected]> wrote:
> > > Hi all,
>
> > > i've tried using db_wizard_populate to insert the users and it's
> > > passwords, in the previous version it's work fine.
> > > did anyone have an idea to fixed it?
>
> > > thanks a lot before.
>
> > > ex.
>
> > > # models/db_wizard_populate.py
> > > from gluon.contrib.populate import populate
> > > if db(db.wiki).isempty():
> > > db.auth_user.bulk_insert([{'first_name' : 'a',
> > > 'last_name' : 'a',
> > > 'email' : '[email protected]',
> > > 'password' :
> > > db.auth_user.password.validate('a')[0]},
> > > {'first_name' : 'b',
> > > 'last_name' : 'b',
> > > 'email' : '[email protected]',
> > > 'password' :
> > > db.auth_user.password.validate('b')[0]}])