]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adjusting updpass trigger definition
authorJean-Marc Pigeon <jmp@safe.c>
Sun, 16 Nov 2025 04:16:44 +0000 (23:16 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Sun, 16 Nov 2025 04:16:44 +0000 (23:16 -0500)
sql/mailleur.sql

index fbf3b3189b32f451f1a3fd16c03931618cc0a451..550978de99d2b6845d27d8d1cc11b847b0ced9c2 100644 (file)
@@ -179,8 +179,8 @@ CREATE FUNCTION updpass()
     IF NEW.password IS NULL OR 
        length(trim(NEW.password)) = 0 OR
        substring(NEW.password,1,1) = '$' THEN
-      set NEW.hash=NULL;
-      set NEW.password=NEW.password;
+      NEW.hash=NULL;
+      NEW.password=NEW.password;
     ELSE
       NEW.hash = md5(HASHING);
       NEW.password = crypt (NEW.password,gen_salt('md5'));