<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font face="Roboto">Hi,</font></p>
<p><font face="Roboto">I'm running midPoint 3.6 and I'm playing with
hooks.</font></p>
<p><font face="Roboto">I'd like to detect when an user has changed
his/her password using hooks and I have tried this without luck:<br>
</font></p>
<p><font face="Roboto">delta =
ObjectDelta.summarize(modelContext.getPrimaryChanges());<br>
QName pwdName = new
QName(<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a>,
"credentials/password/value"); <br>
ItemPath pwdPath = new ItemPath(pwdName);<br>
if(delta.hasItemDelta(pwdPath)){<br>
println("user has changed the password");<br>
}<br>
</font></p>
<p><font face="Roboto"><br>
</font></p>
<p><font face="Roboto">Is there a better way to do this..?<br>
<br>
Thank you.</font></p>
<p><font face="Roboto"><br>
</font></p>
</body>
</html>