hello, thank you so much for your pointer, salbefe. i can input the encrypted password but the result not like i've expected before. i mean there is an additional character on the field password. e.g. db.auth_user.bulk_insert([{'first_name' : 'a', 'last_name' : 'a', 'email' : 'a.a.com', 'password' : db.auth_user.password.validate('a')}])
i created 1 user with password string '*a' (without quotes)*, and second 1 register new password with the same password string '*a'** (without quotes)*, when i compare it on the db the result that i entered manual password string '*a' (without quotes)* via register form is not match that i store on the database via python script. the differnetial on the password field is there is *|encrypted_password|None* when i put it via python script. maybe i've missed something, please give me a hints about this, thank you very much before. On Thu, Apr 28, 2011 at 3:19 PM, salbefe <salb...@gmail.com> wrote: > 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