setPassword Application Delegate Method
Optional method in application delegate class to override how to set the password via the change_password action.
You can throw an exception to disallow setting the password entirely.
Example:
function setPassword($password) {
$user = $this->getLoggedInUser();
if ( !$user ){
throw new Exception("Failed to set password because there is no logged in user.");
}
$user->setValue($this->passwordColumn, $password);
$res = $user->save();
if ( PEAR::isError($res) ){
throw new Exception($res->getMessage());
}
return true;
}
var disqus_identifier = ‘xataface.com/wiki/setPassword’; (function() { var dsq = document.createElement(‘script’); dsq.type = ‘text/javascript’; dsq.async = true; dsq.src = ‘http://xataface.disqus.com/embed.js’; (document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(dsq); })(); blog comments powered by Disqus
//<![CDATA[ (function() { var links = document.getElementsByTagName(‘a’); var query = ‘?’; for(var i = 0; i < links.length; i++) { if(links[i].href.indexOf(‘#disqus_thread’) >= 0) { query += ‘url’ + i + ‘=’ + encodeURIComponent(links[i].href) + ‘&’; } } document.write(‘