must be hashed

settings["serverPassword"] =
db.auth_user.password.validate(str(uuid.uuid4()))[0]

On Nov 22, 8:19 am, Matt Broadstone <mbroa...@gmail.com> wrote:
> Hello,
> In our project we need to create a temporary user for the web2py app
> so that a remote system can send back a singe status update. In order
> to do this, when the command is sent out we create a temporary user
> like this:
>
>         settings["serverUser"] = str(uuid.uuid4())
>         settings["serverPassword"] = str(uuid.uuid4())
>         user = auth.get_or_create_user(dict(username=settings["serverUser"],
> password=settings["serverPassword"]))
>
> This adds the user/password to the database just fine, however, login
> fails because of this line in login_bare:
> password = table_user[passfield].validate(password)[0]
>
> if I remove this line, the password is as expected, which leads me to
> think that we are not adding the password in the first case properly.
> Does it need to be hashed some way?
>
> Matt

Reply via email to