YAXX#89040 Wachtwoordenbeheer voor mensen zonder laptop ingericht.
svn path=/Customer/; revision=69867
This commit is contained in:
63
onces/VBGO/YAXX#89040.sql
Normal file
63
onces/VBGO/YAXX#89040.sql
Normal file
@@ -0,0 +1,63 @@
|
||||
--
|
||||
-- $Id$
|
||||
--
|
||||
-- Script om eenmalig een notificatie te sturen naar mensen die een email hebben maar geen login. Zij kunnen via wachtwoord vergeten inloggen.
|
||||
--
|
||||
DEFINE thisfile = 'YAXX#89040.SQL'
|
||||
DEFINE dbuser = '^VBGO'
|
||||
|
||||
SET ECHO ON
|
||||
SET DEFINE ON
|
||||
COLUMN fcltlogfile NEW_VALUE fcltlogfile NOPRINT;
|
||||
COLUMN fcltcusterr NEW_VALUE fcltcusterr NOPRINT;
|
||||
WHENEVER SQLERROR CONTINUE;
|
||||
SELECT adm.getscriptspoolfile('&thisfile') AS fcltlogfile FROM DUAL;
|
||||
SPOOL &fcltlogfile
|
||||
WHENEVER SQLERROR EXIT;
|
||||
SELECT adm.checkscriptcust('&dbuser') AS fcltcusterr FROM DUAL;
|
||||
WHENEVER SQLERROR CONTINUE;
|
||||
PROMPT &fcltcusterr
|
||||
SET DEFINE OFF
|
||||
|
||||
------ payload begin ------
|
||||
|
||||
DECLARE
|
||||
CURSOR c IS
|
||||
SELECT *
|
||||
FROM prs_perslid
|
||||
WHERE prs_perslid_credentials_datum > TO_DATE ('20250607', 'yyyymmdd')
|
||||
AND TO_CHAR (prs_perslid_credentials_datum, 'hh24') = '07'
|
||||
AND EXISTS
|
||||
(SELECT 1
|
||||
FROM prs_kenmerklink
|
||||
WHERE prs_kenmerk_key = 1040 AND prs_link_key = prs_perslid_key);
|
||||
BEGIN
|
||||
FOR rec IN c
|
||||
LOOP
|
||||
FAC.putnotificationsrtprio (NULL, -- pfrom
|
||||
rec.prs_perslid_key, -- pto
|
||||
'CUST01', -- pcode
|
||||
rec.prs_perslid_key, -- pref
|
||||
'Inloggegevens Facilitor', -- poptmessage
|
||||
NULL, --poptstatus
|
||||
NULL, -- poptemail
|
||||
NULL, -- poptmobile
|
||||
NULL, -- pxref
|
||||
2, -- pprio
|
||||
NULL -- psender
|
||||
);
|
||||
END LOOP;
|
||||
END;
|
||||
/
|
||||
|
||||
------ payload end ------
|
||||
|
||||
SET DEFINE OFF
|
||||
BEGIN adm.systrackscriptId ('$Id$', 1); END;
|
||||
/
|
||||
|
||||
COMMIT;
|
||||
SET ECHO OFF
|
||||
SPOOL OFF
|
||||
SET DEFINE ON
|
||||
PROMPT Logfile of this upgrade is: &fcltlogfile
|
||||
Reference in New Issue
Block a user