Thank you, for clarification!

On 7 jan., 15:01, mdipierro <[email protected]> wrote:
> Yes because get_or_create_user already expects an encrypted password.
> In gluon.tools its is always called as
>
> user = self.get_or_create_user(form.vars)
>
> where form.vars have already passed validation, therefore the password
> has already been encrypted.
>
> If you call get_or_create_user yourself in the code, you must not pass
> password but
>
> password=db.auth_user.password.requires[0](password)[0]
>
> On Jan 7, 7:26 am, dz0ny <[email protected]> wrote:
>
>
>
> > Hello!
>
> > I've discovered following problem when using auth.get_or_create_user
> > ({"email":"[email protected]", "password":"longlongtime"}), the password in
> > database isn't encrypted, but stays plain. But when using form
> > registration it's encrypted correctly.
>
> > Is this right behavior?
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to