Try 

print repr(db.auth_user.password.validate(mypassword)[0])

what do you get?


On Monday, 6 May 2013 23:22:29 UTC-5, vikas gupta wrote:
>
> I tried this :
>         id=db.auth_user.insert( **{'email':myemail, 
> 'password':(db.auth_user.password.validate(mypassword)[0]), 
> 'first_name':myname})
>
> and still get the same error at this line:
> TypeError: character mapping must return integer, None or unicode
>
> I tried the bulk insert:
>         db.auth_user.bulk_insert([{'first_name' : myname,
>             'email' : myemail,
>             'password' : db.auth_user.password.validate(mypassword)[0]}])
>
> I get the same error, the line number points to the third line in the 
> above statement, which is the password one.
>
> I tried this:
>     encpasswd=db.auth_user.password.validate(mypassword)[0]
>         logger.debug("encrypted passwd - %s" % encpasswd)
> and I get the same error on the second line.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to