[CPS-devel] validation of username and passwrod during login

Nicolas Clain nicolas.clain at gmail.com
Tue Feb 27 19:17:33 CET 2007


Hi,

you have to read the code of CPSUserFolder and CPSDirectory.
The methods you're looking for are "getEntryAuthenticated" and
"_checkPassword" in ZODBDirectory.

Have fun ;).

On 2/27/07, Miguel Sánchez Beato <miguel.sanchez at iavantefundacion.com>
wrote:
>
> Hello, I'm working on a customized CPS 3.4.2 and I'm trying to store the
> user passwords using a md5 encryption. So, I've solved the problem of
> writing on the field 'password' (of the members shema) using a
> customized method that encrypt like this (portal_mytool is an example of
> a tool):
>
>     * In the 'password' field of 'members' schema:
>
>         Write expression: python: portal.portal_mytool.encryptMd5(value)
>
>
> Now, I have to change the way the password is validated when a user logs
> in the portal, but I cannot find the right point where this is done
> (I've been looking at CMFCore.CookieCrumbler class and 'logged_in.py'
> script, ...nothing)
>
> Anybody knows where can I find that login validation feature?
>
> Thanks!
> _______________________________________________
> cps-devel mailing list
> http://lists.nuxeo.com/mailman/listinfo/cps-devel
>



-- 
Nicolas Clain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20070227/9cecba9d/attachment.htm



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.