[ChangePassword] Renamed trigger to AD_USER_EXPIRATIONPASS_TRG
authorJonathan Bueno <jonathan.bueno@openbravo.com>
Fri, 19 Feb 2016 13:42:53 +0100
changeset 28680 e0aaaa3f6b1b
parent 28679 060c7af3f4dd
child 28681 d31f552b21a4
[ChangePassword] Renamed trigger to AD_USER_EXPIRATIONPASS_TRG
src-db/database/model/triggers/AD_USER_EXPIRATIONPASS_TRG.xml
src-db/database/model/triggers/AD_USER_EXPIRYPASS_TRG.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src-db/database/model/triggers/AD_USER_EXPIRATIONPASS_TRG.xml	Fri Feb 19 13:42:53 2016 +0100
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+  <database name="TRIGGER AD_USER_EXPIRATIONPASS_TRG">
+    <trigger name="AD_USER_EXPIRATIONPASS_TRG" table="AD_USER" fires="before" insert="false" update="true" delete="false" foreach="row">
+      <body><![CDATA[
+      
+/*************************************************************************
+* The contents of this file are subject to the Openbravo  Public  License
+* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
+* Version 1.1  with a permitted attribution clause; you may not  use this
+* file except in compliance with the License. You  may  obtain  a copy of
+* the License at http://www.openbravo.com/legal/license.html
+* Software distributed under the License  is  distributed  on  an "AS IS"
+* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+* License for the specific  language  governing  rights  and  limitations
+* under the License.
+* The Original Code is Openbravo ERP.
+* The Initial Developer of the Original Code is Openbravo SLU
+* All portions are Copyright (C) 2015 Openbravo SLU
+* All Rights Reserved.
+* Contributor(s):  ______________________________________.
+************************************************************************/
+ 
+ BEGIN
+ 
+   IF AD_isTriggerEnabled()='N' THEN RETURN;
+   END IF;
+
+   IF (:OLD.password<>:NEW.password OR :OLD.password IS NULL AND :NEW.password IS NOT NULL) THEN
+     
+     :NEW.lastpasswordupdate := now();
+     
+   END IF;
+ 
+   END AD_USER_EXPIRATIONPASS_TRG
+]]></body>
+    </trigger>
+  </database>
--- a/src-db/database/model/triggers/AD_USER_EXPIRYPASS_TRG.xml	Fri Feb 19 12:56:49 2016 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-<?xml version="1.0"?>
-  <database name="TRIGGER AD_USER_EXPIRYPASS_TRG">
-    <trigger name="AD_USER_EXPIRYPASS_TRG" table="AD_USER" fires="before" insert="false" update="true" delete="false" foreach="row">
-      <body><![CDATA[
-      
-/*************************************************************************
-* The contents of this file are subject to the Openbravo  Public  License
-* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
-* Version 1.1  with a permitted attribution clause; you may not  use this
-* file except in compliance with the License. You  may  obtain  a copy of
-* the License at http://www.openbravo.com/legal/license.html
-* Software distributed under the License  is  distributed  on  an "AS IS"
-* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
-* License for the specific  language  governing  rights  and  limitations
-* under the License.
-* The Original Code is Openbravo ERP.
-* The Initial Developer of the Original Code is Openbravo SLU
-* All portions are Copyright (C) 2015 Openbravo SLU
-* All Rights Reserved.
-* Contributor(s):  ______________________________________.
-************************************************************************/
- 
- BEGIN
- 
-   IF AD_isTriggerEnabled()='N' THEN RETURN;
-   END IF;
-
-   IF (:OLD.password<>:NEW.password OR :OLD.password IS NULL AND :NEW.password IS NOT NULL) THEN
-     
-     :NEW.lastpasswordupdate := now();
-     
-   END IF;
- 
-   END AD_USER_EXPIRYPASS_TRG
-]]></body>
-    </trigger>
-  </database>