Hello,

Yo can do this:


db.auth_user.insert(first_name=...,last_name=...,email=...,password=db.auth_user.password.validate(myPassword))



On 28 abr, 08:36, 黄祥 <steve.van.chris...@gmail.com> wrote:
> hi,
>
> is there a way to input encrypted user password for the first time
> execution? i mean like
> e.g.
> db.auth_user.bulk_insert([{'first name' : 'a', 'last name' : 'a',
> 'email' : 'a.a.com', 'password' : 'a'}, {'first name' : 'b', 'last
> name' : 'b', 'email' : 'b.b.com', 'password' : 'b'}])
>
> i can using this bulk insert but, the password didn't encryted. and
> the other is there alternative way to do that maybe something like :
> e.g.
> auth.add_user('first name', 'last_name', 'email', 'password')
>
> please give an advice or pointer about this,
>
> thank you very much before

Reply via email to