src-db/database/model/triggers/AD_USER_EXPIRYPASS_TRG.xml
changeset 28802 25d249e69d3f
parent 28800 75cb35d38d02
--- a/src-db/database/model/triggers/AD_USER_EXPIRYPASS_TRG.xml	Tue Feb 09 09:45:56 2016 +0100
+++ b/src-db/database/model/triggers/AD_USER_EXPIRYPASS_TRG.xml	Fri Feb 12 11:41:37 2016 +0100
@@ -25,7 +25,7 @@
    IF AD_isTriggerEnabled()='N' THEN RETURN;
    END IF;
 
-   IF (:OLD.password<>:NEW.password) THEN
+   IF (:OLD.password<>:NEW.password OR :OLD.password IS NULL AND :NEW.password IS NOT NULL) THEN
      
      :NEW.lastpasswordupdate := now();