Passwords are not stored by Magnolia. Only a hash of a password. So to check 
the password you should use BCrypt.checkPassword(plainTextEnteredByUser, 
hashStoredInMagnolia)

Jan

On Jan 14, 2013, at 7:44 PM, Andreas Klaus (via Magnolia Forums) 
<[email protected]> wrote:

> Hi there!
> 
> Im a bit confused with passwords generated in the backend under Public User's 
> and the ones I'm getting with
> 
> MgnlUserManager userManager = (MgnlUserManager) 
> SecuritySupport.Factory.getInstance().getUserManager("public");
> User user = userManager.getUser(getUsername());
> 
> user.getPassword() …..
> 
> 
> So whats the right way to check a password agains the public users?
> 
> Thank you!
> 
> Klaus
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=6934e3e8-68b0-4d68-a0ab-e5f949ffe51b
> 
> 
> ----------------------------------------------------------------
> For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
> Alternatively, use our forums: http://forum.magnolia-cms.com/
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to