Skip to content

Commit 77b5293

Browse files
committed
feat: set primary role during signup
Signed-off-by: Rakib Ansary <[email protected]>
1 parent 1f40fe9 commit 77b5293

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

web-assets/auth0/prod-tenant/universal-login.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@
8282
var languageDictionary;
8383
var language;
8484
var optionsObj = Array();
85+
var primaryRoleOptionsObj = [{
86+
label: 'Talent - join as a community member',
87+
value: 'Topcoder Talent'
88+
}, {
89+
label: 'Customer - join to get work done',
90+
value: 'Topcoder Customer'
91+
}];
8592
var regSource = config.extraParams.reg_source || null;
8693
var utmSource = config.extraParams.utm_source || null;
8794
var utmMedium = config.extraParams.utm_medium || null;
@@ -104,7 +111,8 @@
104111
title: "Topcoder Login",
105112
error: {
106113
login: {
107-
'lock.fallback': "We're sorry, something went wrong when attempting to log in."
114+
'lock.fallback': "We're sorry, something went wrong when attempting to log in.",
115+
'deactivated_account': "Account is deactivated"
108116
},
109117
signUp: {
110118
"lock.fallback": "We're sorry, something went wrong when attempting to sign up.",
@@ -188,7 +196,7 @@
188196
socialButtonStyle: 'small'
189197
},
190198
tc_standard: {
191-
allowedConnections: ['TC-User-Database', 'github', 'google-oauth2', 'wipro-adfs', 'wipro-azuread', 'Verified-User-Database'],
199+
allowedConnections: ['TC-User-Database', 'github', 'google-oauth2', 'wipro-adfs', 'wipro-azuread', 'Verified-User-Database','TopcoderProductionGoogleWorkspace'],
192200
theme: {
193201
logo: 'https://i.imgur.com/IY6TVjY.png',
194202
primaryColor: '#137d60'
@@ -332,6 +340,14 @@
332340
};
333341
}
334342
},
343+
{
344+
type: "select",
345+
name: "primaryRole",
346+
placeholder: "Select your role",
347+
options: primaryRoleOptionsObj,
348+
fieldLabel: 'The role you select maybe changed in your Profile Settings.',
349+
fieldPlaceholder: 'Talent join to learn, complete, connect and find freelance gig work. Customers join to launch challenges, find freelancers, and get work done.'
350+
},
335351
{
336352
type: "select",
337353
name: "country",

0 commit comments

Comments
 (0)