You can change current behavior by changing db.auth_user.password.requires.

This is a default validator:
https://github.com/web2py/web2py/blob/master/gluon/tools.py#L1786-L1787

it's being used here:
https://github.com/web2py/web2py/blob/master/gluon/tools.py#L1850-L1852


Check if you can get desired fromat from CRYPT validator:
https://github.com/web2py/web2py/blob/master/gluon/validators.py#L2850

If not, just create your own:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-validators

Marin


On Fri, May 30, 2014 at 4:22 PM, farmy zdrowia <bi...@farmyzdrowia.pl>
wrote:

> Hello,
> I'm trying to integrate web2py users to be stored in joomla  "_users"
> database instead of auth_user. I can see joomla and web2py use different
> algorithm do code/decode passwords.
> Joomla password looks like:
>   $P$DryHu7D3LgdPOK//FPvuVMcMR13HgU1
> , while web2py
>
> pbkdf2(1000,20,sha512)$a76b573005c73906$01f33be064bd2a283350206fd29355f9fa2b30fe
>
> I'd like to change web2py default algorithm to code/decode passwords to be
> similar to joomla simply to have common users database.
> Could you help a bit and guide me where this function is located and how
> to change it?
>
>
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to