Skip to content

Commit d28ab2a

Browse files
committed
User ‘auto’ user handling in uninav
1 parent b845307 commit d28ab2a

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

web/includes/inc_header_reskin.jsp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@
2525
o=t.getElementsByTagName(e)[0];i.async=1;i.type="module";i.src=a;o.parentNode.insertBefore(i,o)
2626
}(window,document,"script",scriptURL,"tcUniNav");
2727
28-
var userId = `${userId}`;
29-
if (userId !== '-1') {
30-
var handle = "${userHandle}";
31-
}
32-
var initials = handle ? handle.substr(0, 2).toUpperCase() : '';
33-
34-
var user = {
35-
userId,
36-
initials,
37-
handle
38-
};
3928
4029
var signInUrl = "https://accounts-auth0.topcoder-dev.com/?retUrl=https://software.topcoder-dev.com/review"
4130
@@ -53,7 +42,7 @@
5342
type: 'tool',
5443
toolName: 'Review',
5544
toolRoot: '/',
56-
user: handle ? user : null,
45+
user: 'auto',
5746
signOut() {
5847
window.location.replace(signOutUrl)
5948
},

0 commit comments

Comments
 (0)