From e97edae1d012eb4c0d51b30432b2daa696910beb Mon Sep 17 00:00:00 2001 From: Jon Sayer Date: Sat, 29 Jun 2019 07:23:00 -0700 Subject: [PATCH 1/3] Changes up to June 29, including language switching support --- src/classes/C501_CTRL_ClassReg_CreateAcct.cls | 46 +- src/classes/C501_CTRL_ClassReg_Login.cls | 9 +- src/classes/C501_CTRL_ClassReg_SelectLang.cls | 27 + ...C501_CTRL_ClassReg_SelectLang.cls-meta.xml | 5 + src/classes/C501_UTIL_ClassRegUtilities.cls | 21 +- src/labels/CustomLabels.labels | 21 + src/objects/Contact.object | 139 ++++ src/package.xml | 17 + src/pages/C501_ClassReg_CreateAcct.page | 641 +++++++++++++++--- src/pages/C501_ClassReg_Login.page | 5 +- src/pages/C501_ClassReg_SelectLang.page | 35 + .../C501_ClassReg_SelectLang.page-meta.xml | 7 + 12 files changed, 873 insertions(+), 100 deletions(-) create mode 100644 src/classes/C501_CTRL_ClassReg_SelectLang.cls create mode 100644 src/classes/C501_CTRL_ClassReg_SelectLang.cls-meta.xml create mode 100644 src/pages/C501_ClassReg_SelectLang.page create mode 100644 src/pages/C501_ClassReg_SelectLang.page-meta.xml diff --git a/src/classes/C501_CTRL_ClassReg_CreateAcct.cls b/src/classes/C501_CTRL_ClassReg_CreateAcct.cls index 8a54ced..627374d 100644 --- a/src/classes/C501_CTRL_ClassReg_CreateAcct.cls +++ b/src/classes/C501_CTRL_ClassReg_CreateAcct.cls @@ -1,12 +1,23 @@ public class C501_CTRL_ClassReg_CreateAcct { + public String language {get; set;} + public Contact parent {get; set;} public Contact child {get; set;} public Account family {get; set;} public String pageStatus {get; set;} public ID loginID {get; set;} public String schoolName {get; set;} - public String schoolRegion {get; set;} + public String schoolNameText {get; set;} + public String schoolRegion { + get{ + if(schoolRegion == null){ + schoolRegion = ''; + } + return schoolRegion; + } + set; + } public School_Term__c term {get; set;} public String grade {get; set;} private String RegType {get; set;} @@ -14,13 +25,7 @@ public class C501_CTRL_ClassReg_CreateAcct { public List schoolList { get { if(schoolList == null ){ - if(String.isBlank(schoolRegion)){ - schoolList = getSelectOptionsActiveSchools( '' ); - System.debug('List schoolList run: schoolRegion is null'); - } else { - schoolList = getSelectOptionsActiveSchools(schoolRegion); - System.debug('List schoolList run: schoolRegion is: ' + schoolRegion); - } + schoolList = getSelectOptionsActiveSchools(schoolRegion); } System.debug('List schoolList run: ' + schoolList); return schoolList; @@ -33,6 +38,10 @@ public class C501_CTRL_ClassReg_CreateAcct { public List childFieldSet {get; set;} public C501_CTRL_ClassReg_CreateAcct(){ + language = ApexPages.currentPage().getParameters().get('l'); + if(language == null){ + language = 'en_US'; + } Boolean loggedIn = false; loginID = null; RegType = null; @@ -82,9 +91,9 @@ public class C501_CTRL_ClassReg_CreateAcct { RegType = 'byText'; } - schoolRegion = ''; gradeList = C501_UTIL_ClassRegUtilities.listOfGrades(); schoolName = ''; + schoolNameText = ''; Map FsAcctMap = Schema.SObjectType.Account.fieldSets.getMap(); Map FsContMap = Schema.SObjectType.Contact.fieldSets.getMap(); @@ -160,11 +169,15 @@ public class C501_CTRL_ClassReg_CreateAcct { Boolean passValidation = true; if(schoolName == null || schoolName == '' ){ - ApexPages.addMessage(new ApexPages.message(ApexPages.severity.WARNING,'Please Select a School') ); + ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR,'Please Select a School') ); passValidation = false; } if(grade == null || grade == '' ){ - ApexPages.addMessage(new ApexPages.message(ApexPages.severity.WARNING,'Please Select a Grade') ); + ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR,'Please Select a Grade') ); + passValidation = false; + } + if( parent.Email == null && parent.HomePhone == null && parent.MobilePhone == null && parent.OtherPhone == null ){ + ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR,'Please enter a contact method (phone number or email) for the parent. We need to be able to contact you!') ); passValidation = false; } if(passValidation == false){ @@ -187,12 +200,16 @@ public class C501_CTRL_ClassReg_CreateAcct { term.Parent__c = parent.Id; term.School__c = schoolName; + schoolNameText = [Select id,Name from Account where id = :schoolName].Name; + // future version, need to make this dynamic term.School_Year__c = C501_UTIL_ClassRegUtilities.currentSchoolYear( Date.today() ); term.C501_Sign_Up_Source__c = 'Online'; insert term; + + pageStatus = 'finished'; return null; } @@ -246,5 +263,10 @@ public class C501_CTRL_ClassReg_CreateAcct { return schoolOptions; } - + + /*public map> contactFieldName2Options(){ + + }*/ + + } \ No newline at end of file diff --git a/src/classes/C501_CTRL_ClassReg_Login.cls b/src/classes/C501_CTRL_ClassReg_Login.cls index 67b1b4f..2b75c0b 100644 --- a/src/classes/C501_CTRL_ClassReg_Login.cls +++ b/src/classes/C501_CTRL_ClassReg_Login.cls @@ -1,5 +1,6 @@ public class C501_CTRL_ClassReg_Login { + public String language {get;set;} public String pageStatus {get;set;} public String phoneNumber {get;set;} public String identityInput {get;set;} @@ -8,6 +9,10 @@ public class C501_CTRL_ClassReg_Login { private ID acctID = null; public C501_CTRL_ClassReg_Login(){ + language = ApexPages.currentPage().getParameters().get('l'); + if(language == null){ + language = 'en_US'; + } pageStatus = 'start'; phoneNumber = ''; confirmation = ''; @@ -16,7 +21,7 @@ public class C501_CTRL_ClassReg_Login { } public PageReference confirmLoginBySendToAddress(){ - PageReference nextPage = C501_UTIL_ClassRegUtilities.confirmLoginByCodeToAddress(confirmation, identityInput , remember ); + PageReference nextPage = C501_UTIL_ClassRegUtilities.confirmLoginByCodeToAddress(confirmation, identityInput , remember , language); if(nextPage == null){ pageStatus = 'confirm-fail'; return null; @@ -41,7 +46,7 @@ public class C501_CTRL_ClassReg_Login { // // public PageReference confirmLogin(){ - PageReference nextPage = C501_UTIL_ClassRegUtilities.confirmLogin(confirmation,acctID,remember); + PageReference nextPage = C501_UTIL_ClassRegUtilities.confirmLogin(confirmation,acctID,remember,language); if(nextPage == null){ pageStatus = 'confirm-fail'; return null; diff --git a/src/classes/C501_CTRL_ClassReg_SelectLang.cls b/src/classes/C501_CTRL_ClassReg_SelectLang.cls new file mode 100644 index 0000000..0a37a5c --- /dev/null +++ b/src/classes/C501_CTRL_ClassReg_SelectLang.cls @@ -0,0 +1,27 @@ +public class C501_CTRL_ClassReg_SelectLang { + public string language {get;set;} + + public List getListOfLangs(){ + List langList = new List(); + langList.add(new SelectOption('en-us', 'English')); + + //langList.add(new SelectOption('nl_NL', 'عربى')); + langList.add(new SelectOption('es_MX', 'Español')); + //langList.add(new SelectOption('fr', 'Francais')); + //langList.add(new SelectOption('zh_CN', '中文')); + //langList.add(new SelectOption('fi', 'Tiếng Việt')); + + return langList; + } + + public PageReference changeLang() { + Map currentPageParameters = ApexPages.currentPage().getParameters(); + return C501_UTIL_ClassRegUtilities.generatePageLink('C501_ClassReg_Login','l',language); + } + + public C501_CTRL_ClassReg_SelectLang(){ + + language = System.currentPagereference().getParameters().get('lang'); + + } +} \ No newline at end of file diff --git a/src/classes/C501_CTRL_ClassReg_SelectLang.cls-meta.xml b/src/classes/C501_CTRL_ClassReg_SelectLang.cls-meta.xml new file mode 100644 index 0000000..91b23b8 --- /dev/null +++ b/src/classes/C501_CTRL_ClassReg_SelectLang.cls-meta.xml @@ -0,0 +1,5 @@ + + + 46.0 + Active + diff --git a/src/classes/C501_UTIL_ClassRegUtilities.cls b/src/classes/C501_UTIL_ClassRegUtilities.cls index c55877f..1ff5554 100644 --- a/src/classes/C501_UTIL_ClassRegUtilities.cls +++ b/src/classes/C501_UTIL_ClassRegUtilities.cls @@ -46,7 +46,7 @@ public class C501_UTIL_ClassRegUtilities { return returnYear; } - public static PageReference confirmLogin(String confirmation,ID acctID,Boolean remember){ + public static PageReference confirmLogin(String confirmation,ID acctID,Boolean remember,String language){ String pageStatus = C501_UTIL_ClassRegUtilities.checkVerificationCode(confirmation,acctID); if(pageStatus == 'success'){ @@ -57,12 +57,13 @@ public class C501_UTIL_ClassRegUtilities { } else { remString = '0'; } - return C501_UTIL_ClassRegUtilities.generatePageLink('C501_ClassReg_Home','a,s,r',acctID+','+confirmation.replaceAll('[^0-9]', '')+','+remString); + return C501_UTIL_ClassRegUtilities.generatePageLink('C501_ClassReg_Home','a,s,r,l',acctID+','+confirmation.replaceAll('[^0-9]', '')+','+remString+','+language); } else { return null; } } + public static Boolean confirmLoggedIn(String loginID, Boolean timeCare){ Integer timeModify = 0; if(timeCare){ @@ -83,6 +84,22 @@ public class C501_UTIL_ClassRegUtilities { return attList.size() > 0; } + public static PageReference confirmLoginByCodeToAddress(String confirmation,String codeToAddress,Boolean remember,String language){ + String pageStatus = checkVerificationCodeByCodeToAddress(confirmation,codeToAddress); + if(pageStatus != 'confirm-fail'){ + // redirect to the account manager page + String remString = ''; + if(remember){ + remString = '1'; + } else { + remString = '0'; + } + return C501_UTIL_ClassRegUtilities.generatePageLink('C501_ClassReg_CreateAcct','a,r,c,l',pageStatus+','+remString+','+codeToAddress+','+language); + } else { + return null; + } + } + public static PageReference confirmLoginByCodeToAddress(String confirmation,String codeToAddress,Boolean remember){ String pageStatus = checkVerificationCodeByCodeToAddress(confirmation,codeToAddress); if(pageStatus != 'confirm-fail'){ diff --git a/src/labels/CustomLabels.labels b/src/labels/CustomLabels.labels index f6bb715..b928bf5 100644 --- a/src/labels/CustomLabels.labels +++ b/src/labels/CustomLabels.labels @@ -328,6 +328,13 @@ We may also look at your child’s school information, like attendance and cours C501_RegSite_CodeMismatch That doesn't seem to match the code we sent you. Try again? + + C501_RegSite_ConfirmMessageSite + en_US + false + C501_RegSite_ConfirmMessageSite + We have received your application. We have sent a confirmation message to the Email Address or Phone Number you provided. A copy of your application is below. Feel free to save or print this for your records. + C501_RegSite_Continue en_US @@ -342,6 +349,13 @@ We may also look at your child’s school information, like attendance and cours C501_RegSite_FamilyInformation Family Information + + C501_RegSite_FinishedApp + en_US + false + C501_RegSite_FinishedApp + Your Application is Complete + C501_RegSite_FirstName en_US @@ -384,6 +398,13 @@ We may also look at your child’s school information, like attendance and cours C501_RegSite_Login Log in + + C501_RegSite_NotProvided + en_US + false + C501_RegSite_NotProvided + Not provided + C501_RegSite_ParentEmail en_US diff --git a/src/objects/Contact.object b/src/objects/Contact.object index 7a50430..8d2439f 100644 --- a/src/objects/Contact.object +++ b/src/objects/Contact.object @@ -138,6 +138,11 @@ false false + + Number_in_Household_Picklist__c + false + false + Volunteer__c false @@ -157,6 +162,40 @@ Text false + + Alternate_Contact_Name__c + false + In case the parent/guardian cannot be reached, please provide an EMERGENCY CONTACT + + 100 + false + false + false + Text + false + + + Alternate_Contact_Phone__c + false + Emergency Contact's Phone + + false + false + true + Phone + + + Alternate_Contact_Relationship__c + false + Emergency Contact's Relationship to Child + + 100 + false + false + false + Text + false + Authorized_Pickup_1_Name__c false @@ -259,6 +298,40 @@ Text false + + Emergency_Contact_2_Name__c + false + Please provide the name of a Second Emergency Contact + + 100 + false + false + false + Text + false + + + Emergency_Contact_2_Phone__c + false + Emergency Contact 2's Phone + + false + false + false + Phone + + + Emergency_Contact_2_Relationship__c + false + Emergency Contact 2's Relationship to Child + + 100 + false + false + false + Text + false + Emergency_Preferred_Medical_Provider__c false @@ -326,6 +399,72 @@ LongTextArea 3 + + Number_in_Household_Picklist__c + false + How many people live in your household: + + false + false + false + Picklist + + true + + false + + 2 + false + + + + 3 + false + + + + 4 + false + + + + 5 + false + + + + 6 + false + + + + 7 + false + + + + 8 + false + + + + 9 + false + + + + 10 + false + + + + More than 10 + false + + + + + Number_in_Household__c As reported by Parent (not based on Household Account) diff --git a/src/package.xml b/src/package.xml index 743ddaf..ace5f8b 100644 --- a/src/package.xml +++ b/src/package.xml @@ -4,6 +4,7 @@ C501_CTRL_ClassReg_CreateAcct C501_CTRL_ClassReg_Home C501_CTRL_ClassReg_Login + C501_CTRL_ClassReg_SelectLang C501_TESTClassReg_Login C501_TEST_ClassReg_CreateAcct C501_UTIL_ClassRegUtilities @@ -14,6 +15,7 @@ C501_ClassReg_CreateAcct C501_ClassReg_Home C501_ClassReg_Login + C501_ClassReg_SelectLang ApexPage @@ -28,6 +30,9 @@ Class_Site_Login_Attempt__c.Secret_Code__c Class_Site_Login_Attempt__c.Verified__c Contact.Allergies__c + Contact.Alternate_Contact_Name__c + Contact.Alternate_Contact_Phone__c + Contact.Alternate_Contact_Relationship__c Contact.Authorized_Pickup_1_Name__c Contact.Authorized_Pickup_1_Phone__c Contact.Authorized_Pickup_1_Relationship__c @@ -37,13 +42,20 @@ Contact.Authorized_Pickup_3_Name__c Contact.Authorized_Pickup_3_Phone__c Contact.Authorized_Pickup_3_Relationship__c + Contact.Emergency_Contact_2_Name__c + Contact.Emergency_Contact_2_Phone__c + Contact.Emergency_Contact_2_Relationship__c Contact.Emergency_Preferred_Medical_Provider__c Contact.Income__c Contact.Medication__c + Contact.Number_in_Household_Picklist__c Contact.Number_in_Household__c Contact.Parent_Education__c + Contact.Parent_Education__c + Contact.Parent_Education_second_parent__c Contact.Parent_Education_second_parent__c Contact.Preferred_Method_of_Contact__c + Contact.Preferred_Method_of_Contact__c Contact.Race__c Contact.Student_Special_Needs__c Contact.Student_Transportation__c @@ -122,6 +134,8 @@ C501_ClassReg_PhotoVideoLabel C501_ClassReg_PhotoVideoP1 C501_ClassReg_StudentID + C501_ClassReg_StudentID + C501_ClassReg_SubmitApplication C501_ClassReg_SubmitApplication C501_ClassReg_dcArea C501_ClassReg_eastBay @@ -133,14 +147,17 @@ C501_RegSite_ChildLastName C501_RegSite_City C501_RegSite_CodeMismatch + C501_RegSite_ConfirmMessageSite C501_RegSite_Continue C501_RegSite_FamilyInformation + C501_RegSite_FinishedApp C501_RegSite_FirstName C501_RegSite_Grade C501_RegSite_InvalidEmailPhone C501_RegSite_LeaveBlank C501_RegSite_LeaveBlankEmail C501_RegSite_Login + C501_RegSite_NotProvided C501_RegSite_ParentEmail C501_RegSite_ParentFirstName C501_RegSite_ParentLastName diff --git a/src/pages/C501_ClassReg_CreateAcct.page b/src/pages/C501_ClassReg_CreateAcct.page index c6e3c54..6258c09 100644 --- a/src/pages/C501_ClassReg_CreateAcct.page +++ b/src/pages/C501_ClassReg_CreateAcct.page @@ -1,9 +1,9 @@ - +
- +
@@ -16,14 +16,14 @@

- Please and provide a phone number or email to authenticate. + Please and provide a phone number or email to authenticate.

- +

@@ -41,14 +41,14 @@
- - + +
- - + +
@@ -57,13 +57,13 @@
- - {! $Label.C501_RegSite_LeaveBlank } + + {! $Label.C501_RegSite_LeaveBlank }
- + {! $Label.C501_RegSite_LeaveBlank }

@@ -71,59 +71,128 @@
- - + +
- - + +
- - - + + +
- - + +
- - -
-
-
- - - - + + +
+
+
+ + + + +
+
+ + + + +
- - + +
@@ -133,14 +202,14 @@
- +
- +
@@ -150,21 +219,31 @@
- + -
-
-
- - +
+
+
+ + + +
- + -
+

{! $Label.C501_RegSite_FamilyInformation } @@ -174,14 +253,14 @@
- - + +
- - + +
@@ -189,7 +268,7 @@
- + {! $Label.C501_RegSite_LeaveBlank }
@@ -198,21 +277,21 @@
- + {! $Label.C501_RegSite_LeaveBlank }
- + {! $Label.C501_RegSite_LeaveBlank }
- + {! $Label.C501_RegSite_LeaveBlank }
@@ -220,26 +299,26 @@ -
-
-
- - +
+
+
+ +
- + -
-
-
- - +
+
+
+ +
- +
@@ -257,7 +336,7 @@

- +

@@ -275,20 +354,20 @@
-
- - +
+ +
-
+

- +

-
+

{! $Label.C501_ClassReg_PhotoVideo } @@ -299,7 +378,7 @@

- +

@@ -326,7 +405,7 @@ {! $Label.C501_ClassReg_EvalStudyH1P2 }

- {! $Label.C501_ClassReg_EvalStudyH1P3 } + {! $Label.C501_ClassReg_EvalStudyH1P3 }

{! $Label.C501_ClassReg_EvalStudyH2 } @@ -347,11 +426,11 @@

- +

- +

@@ -390,6 +469,400 @@ + + + + + + +
+
+

+ {! $Label.C501_RegSite_FinishedApp } +

+

+ {! $Label.C501_RegSite_ConfirmMessageSite } +

+
+
+
+
+

+ {! $Label.C501_RegSite_StudentInformation } +

+
+
+
+
+
+ +

+ +

+
+
+
+
+ +

+ +

+
+
+
+ +
+
+
+ + +

+ +

+ +
+
+
+
+ + +

+ +

+
+
+
+ +
+
+
+ +

+ +

+
+
+
+
+
+
+ +

+ +

+
+
+
+
+ +

+ + +

+
+
+ +
+
+ +

+ +

+
+
+
+ +
+
+
+ +

+ +

+
+
+
+
+ +

+ +

+
+
+
+ +
+
+
+ +

+ + + +

+
+
+
+
+ +

+ +

+
+
+
+
+ + +

+ +

+
+
+
+ + + +
+
+
+ +

+ +

+
+
+
+
+ +
+
+

+ {! $Label.C501_RegSite_FamilyInformation } +

+
+
+
+
+
+ +

+ +

+ +
+
+
+
+ + +

+ +

+
+
+
+
+
+
+ + +

+ +

+
+
+
+
+
+
+ + +

+ +

+
+
+
+
+ + +

+ +

+
+
+
+
+ + +

+ +

+
+
+
+ + + +
+
+
+ + +

+ +

+
+
+
+
+ + +
+
+
+ + +

+ +

+
+
+
+
+ +
+
+

+ {! $Label.C501_ClassReg_PARTICIPANT_WAIVER } +

+

+ {! $Label.C501_ClassReg_PARTICIPANT_WAIVERp1 } +

+

+ {! $Label.C501_ClassReg_PARTICIPANT_WAIVERp2 } +

+

+ {! $Label.C501_ClassReg_PARTICIPANT_WAIVERp3 } +

+

+ + + +

+

+ +

+
+
+
+
+

+ {! $Label.C501_ClassReg_AuthToTreatMinor } +

+

+ {! $Label.C501_ClassReg_AuthToTreatMinorP1 } +

+

+ {! $Label.C501_ClassReg_AuthToTreatMinorP2 } +

+
+
+
+
+ +

+ +

+ +
+
+
+
+

+ +

+

+ +

+
+
+
+
+

+ {! $Label.C501_ClassReg_PhotoVideo } +

+

+ {! $Label.C501_ClassReg_PhotoVideoP1 } +

+

+ +

+

+ +

+
+
+
+
+

+ {! $Label.C501_ClassReg_parentFamilyConsent } + +

+

+ {! $Label.C501_ClassReg_EvalStudy } +

+

+ {! $Label.C501_ClassReg_EvalStudyH1 } +

+

+ {! $Label.C501_ClassReg_EvalStudyH1P1 } +

+

+ {! $Label.C501_ClassReg_EvalStudyH1P2 } +

+

+ {! $Label.C501_ClassReg_EvalStudyH1P3 } +

+

+ {! $Label.C501_ClassReg_EvalStudyH2 } +

+
    + +
+

+ {! $Label.C501_ClassReg_EvalStudyH3 } +

+

+ {! $Label.C501_ClassReg_EvalStudyH3P1 } +

+
    + +
+

+ +

+

+ +

+

+ +

+

+ +

+
+
+ + + + + + + + +
- + diff --git a/src/pages/C501_ClassReg_Login.page b/src/pages/C501_ClassReg_Login.page index db0f6d5..1ee1b00 100644 --- a/src/pages/C501_ClassReg_Login.page +++ b/src/pages/C501_ClassReg_Login.page @@ -1,4 +1,4 @@ - + @@ -6,7 +6,8 @@

- {! $Label.C501_RegSite_Login } + +

diff --git a/src/pages/C501_ClassReg_SelectLang.page b/src/pages/C501_ClassReg_SelectLang.page new file mode 100644 index 0000000..d967ffc --- /dev/null +++ b/src/pages/C501_ClassReg_SelectLang.page @@ -0,0 +1,35 @@ + + + + + +
+
+

+ Select Language - Seleccione el idioma +

+
+
+
+
+
+ + + +
+
+
+
+
+
+ +
+
+
+
+
+
+ + + +
\ No newline at end of file diff --git a/src/pages/C501_ClassReg_SelectLang.page-meta.xml b/src/pages/C501_ClassReg_SelectLang.page-meta.xml new file mode 100644 index 0000000..ade47e2 --- /dev/null +++ b/src/pages/C501_ClassReg_SelectLang.page-meta.xml @@ -0,0 +1,7 @@ + + + 46.0 + false + false + + From fc1c8b4fce22ebe89a83f75a46c1df9dc9b56811 Mon Sep 17 00:00:00 2001 From: Jon Sayer Date: Sat, 29 Jun 2019 07:27:43 -0700 Subject: [PATCH 2/3] Updating readme --- readme.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readme.txt b/readme.txt index ee35f7c..3dbc4cb 100644 --- a/readme.txt +++ b/readme.txt @@ -11,6 +11,8 @@ How to Install i) C501_ClassReg_CreateAcct ii) C501_ClassReg_Home iii) C501_ClassReg_Login + iii) C501_ClassReg_SelectLang b) Set the site template to C501_ClassRegSiteTemplate - c) Configure the PubliC Access Settings to have access to all of the fields on the Contact, Account, and School Term objects that are needed (this will shift through the lifetime of this project) - d) Also, make sure the Public Access Settings have full access to the Class Site Login Attempt object. \ No newline at end of file + c) Configure the Public Access Settings to have access to all of the fields on the Contact, Account, and School Term objects that are needed (this will shift through the lifetime of this project) + d) Also, make sure the Public Access Settings have full access to the Class Site Login Attempt object. + e) If you are supporting multiple languages, go to Setup -> Translation Workbench -> Translation Settings and enable the languages you mean to support \ No newline at end of file From d541648c6d17479a32f9efd1ee3df3672c776746 Mon Sep 17 00:00:00 2001 From: Jon Sayer Date: Sat, 29 Jun 2019 07:41:54 -0700 Subject: [PATCH 3/3] Removing duplicate method --- src/classes/C501_UTIL_ClassRegUtilities.cls | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/classes/C501_UTIL_ClassRegUtilities.cls b/src/classes/C501_UTIL_ClassRegUtilities.cls index 1ff5554..2f7f3b2 100644 --- a/src/classes/C501_UTIL_ClassRegUtilities.cls +++ b/src/classes/C501_UTIL_ClassRegUtilities.cls @@ -100,22 +100,6 @@ public class C501_UTIL_ClassRegUtilities { } } - public static PageReference confirmLoginByCodeToAddress(String confirmation,String codeToAddress,Boolean remember){ - String pageStatus = checkVerificationCodeByCodeToAddress(confirmation,codeToAddress); - if(pageStatus != 'confirm-fail'){ - // redirect to the account manager page - String remString = ''; - if(remember){ - remString = '1'; - } else { - remString = '0'; - } - return C501_UTIL_ClassRegUtilities.generatePageLink('C501_ClassReg_CreateAcct','a,r,c',pageStatus+','+remString+','+codeToAddress); - } else { - return null; - } - } - public static String checkVerificationCodeByCodeToAddress(String input, String codeToAddress){ String cleanedConfirm = input.replaceAll('[^0-9]', ''); Datetime thirtyMinutesAgo = Datetime.now().addMinutes(-30);