New tables:
PASSWORDS - holds history of passwords for parties ACCESS_CONTROLS - hold page, item / role information for authorization purposes. Modified tables: ENQUIRIES - meter size removed. Replaced by foreign key to METER_SIZE_CODES. COSTS - includes AICO_CODE and DESCRIPTION for use as cost details for Additional Items. General modifications: Yes/No columns modified to VARCHAR2(3) Modules: Added mip_security.pck. Supports Authentication and Authorization (update of the original POC version) Respository: Created new directory structure to hold persistent data. Currently includes Data/Seed for base table values and Data/Demo to populate various party and relationship tables. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@2838 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
22
Data/Demo/create_passwords.sql
Normal file
22
Data/Demo/create_passwords.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
DECLARE
|
||||
l_hash dbms_obfuscation_toolkit.varchar2_checksum;
|
||||
BEGIN
|
||||
FOR l_pwd IN (SELECT id
|
||||
,upper(username) || '/' || upper(username) AS str
|
||||
FROM parties
|
||||
WHERE username IS NOT NULL) LOOP
|
||||
|
||||
l_hash := dbms_obfuscation_toolkit.md5(input_string => l_pwd.str);
|
||||
|
||||
INSERT INTO passwords
|
||||
(prty_id
|
||||
,password_hash
|
||||
,created_on)
|
||||
VALUES
|
||||
(l_pwd.id
|
||||
,l_hash
|
||||
,SYSDATE);
|
||||
END LOOP;
|
||||
END;
|
||||
/
|
||||
exit
|
||||
Reference in New Issue
Block a user