|
75 | 75 | this.platformName = options.platform_name; |
76 | 76 | this.supportURL = options.support_link; |
77 | 77 | this.passwordResetSupportUrl = options.password_reset_support_link; |
78 | | - this.createAccountOption = options.account_creation_allowed; |
| 78 | + this.createAccountOption = options.account_creation_allowed && options.register_links_allowed; |
| 79 | + this.showRegisterLinks = options.register_links_allowed |
79 | 80 | this.hideAuthWarnings = options.hide_auth_warnings || false; |
80 | 81 | this.pipelineUserDetails = options.third_party_auth.pipeline_user_details; |
81 | 82 | this.enterpriseName = options.enterprise_name || ''; |
|
161 | 162 | supportURL: this.supportURL, |
162 | 163 | passwordResetSupportUrl: this.passwordResetSupportUrl, |
163 | 164 | createAccountOption: this.createAccountOption, |
164 | | - hideAuthWarnings: this.hideAuthWarnings, |
| 165 | + showRegisterLinks: this.showRegisterLinks,hideAuthWarnings: this.hideAuthWarnings, |
165 | 166 | pipelineUserDetails: this.pipelineUserDetails, |
166 | 167 | enterpriseName: this.enterpriseName, |
167 | 168 | enterpriseSlugLoginURL: this.enterpriseSlugLoginURL, |
|
186 | 187 |
|
187 | 188 | this.subview.passwordHelp = new PasswordResetView({ |
188 | 189 | fields: data.fields, |
189 | | - model: this.resetModel |
190 | | - }); |
| 190 | + model: this.resetModel, |
| 191 | + showRegisterLinks: this.showRegisterLinks |
| 192 | + }); |
191 | 193 |
|
192 | 194 | // Listen for 'password-email-sent' event to toggle sub-views |
193 | 195 | this.listenTo(this.subview.passwordHelp, 'password-email-sent', this.passwordEmailSent); |
|
211 | 213 | hideAuthWarnings: this.hideAuthWarnings, |
212 | 214 | is_require_third_party_auth_enabled: this.is_require_third_party_auth_enabled, |
213 | 215 | enableCoppaCompliance: this.enable_coppa_compliance, |
214 | | - }); |
| 216 | + showRegisterLinks: this.showRegisterLinks |
| 217 | + }); |
215 | 218 |
|
216 | 219 | // Listen for 'auth-complete' event so we can enroll/redirect the user appropriately. |
217 | 220 | this.listenTo(this.subview.register, 'auth-complete', this.authComplete); |
|
0 commit comments