Hi Tony,
as the message says, you have to get UserManager for specific realm. Calling
[code]
UserManager userManager = securitySupport.getUserManager();
[/code]
will get you DelegatingUserManager which throws UnsupportedOperationException
at current implementation.
I guess you created your user under "admin" realm so you would need to call
this:
[code]
SecuritySupport securitySupport =
Components.getComponent(SecuritySupport.class);
UserManager userManager = securitySupport.getUserManager("admin");
User user = userManager.getUser("tony");
userManager.changePassword(user, "newPassword")
[/code]
If your user is created under different realm, just replace "admin" with the
proper name. You can find user managers configuration under
/server/security/userManagers in the configuration app.
Ondrej
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=9bb68f11-e557-400c-9284-def0bfadf314
----------------------------------------------------------------
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]>
----------------------------------------------------------------