*/
public void updatePassword( String name,String password,String newPassword ){
if( password == null || newPassword == null )
throw new ApplicationException("原密码或新密码为空!");
LoginAccount account = getDao().get(name);
if( account == null )
throw new ApplicationException("找不到名称为"+name+"的账号!");
String hash_pwd = CryptographyUtil.hashMd5Hex( password );
String hash_new_pwd = CryptographyUtil.hashMd5Hex( newPassword );
if( !account.getPassword().equals( hash_pwd ))
throw new ApplicationException("原密码不正确!");
account.setPassword( hash_new_pwd );
account.setLastUpdatePasswordTime(Calendar.getInstance());//密码更新时间
super.dao.update( account );
}