Feat: Founding Partner login with autocreation of User, User Role Link, Company, User Company Link as necessary and autologin with new user - for approved Founding Partners only, otherwise redirected to login page.
This commit is contained in:
14
static/MySQL/91620_approve_founding_partner.sql
Normal file
14
static/MySQL/91620_approve_founding_partner.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
INSERT INTO fetchmetrics.PH_Contact_Form_Change_Set ( comment )
|
||||
VALUES ( 'Approve founding partner ___' );
|
||||
|
||||
UPDATE fetchmetrics.PH_Apply_Founding_Partner_Form AFPF
|
||||
SET
|
||||
AFPF.is_approved = 1
|
||||
, AFPF.id_change_set = (SELECT CFCS.id_change_set FROM fetchmetrics.PH_Contact_Form_Change_Set CFCS ORDER BY CFCS.id_change_set DESC LIMIT 1)
|
||||
WHERE AFPF.id_apply_founding_partner_form = NULL
|
||||
;
|
||||
|
||||
SELECT *
|
||||
FROM fetchmetrics.PH_Apply_Founding_Partner_Form
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user