Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 39b37e7

Browse files
author
Parth Shah
committed
Merge branch 'dev' of github.com:appirio-tech/topcoder-app into dev
2 parents e8edc01 + 332ab2d commit 39b37e7

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

app/account/register/register.controller.js

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,21 @@
9898

9999
vm.socialRegister = function(provider) {
100100
TcAuthService.socialRegistration(provider, null)
101-
.then(function(socialData) {
102-
vm.socialUserId = socialData.socialUserId;
103-
vm.username = socialData.username;
104-
vm.firstname = socialData.firstname;
105-
vm.lastname = socialData.lastname;
106-
vm.email = socialData.email;
107-
vm.isSocialRegistration = true;
108-
vm.socialProfile = socialData.socialProfile;
109-
vm.socialProvider = socialData.socialProvider;
110-
vm.socialContext.accessToken = socialData.socialaccessToken;
101+
.then(function(resp) {
102+
if (resp.status === 'SUCCESS') {
103+
var socialData = resp.data;
104+
vm.socialUserId = socialData.socialUserId;
105+
vm.username = socialData.username;
106+
vm.firstname = socialData.firstname;
107+
vm.lastname = socialData.lastname;
108+
vm.email = socialData.email;
109+
vm.socialProfile = socialData.socialProfile;
110+
vm.socialProvider = socialData.socialProvider;
111+
vm.socialContext= {'accessToken': socialData.accessToken};
112+
vm.isSocialRegistration = true;
113+
} else {
114+
vm.isSocialRegistration = false;
115+
}
111116
})
112117
.catch(function(result) {
113118
switch (result.status) {

app/directives/profile-widget/profile-widget.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
.links
2828
a.badges.link(ng-click="profileVm.showBadges()", ng-show="profileVm.profile.badges.Achievements.length > 0")
2929
| Badges
30-
a.forums.link(ng-href="http://forums.{{DOMAIN}}/?module=History&userID={{profileVm.profile.userId}}")
30+
a.forums.link(ng-href="https://apps.{{DOMAIN}}/forums/?module=History&userID={{profileVm.profile.userId}}")
3131
| Forum Posts

app/my-dashboard/srms/srms.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ section(ng-hide="vm.loading")
1212
.flex-wrapper
1313
h2 Practice on past problems
1414

15-
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost(ng-href="https://community.{{DOMAIN}}/tc?module=ProblemArchive") Problem Archives
15+
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost(ng-href="https://arena.{{DOMAIN}}/#/u/practiceProblemList") Problem Archives
1616

1717
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost(ng-href="https://community.{{DOMAIN}}/wiki/display/tc/Algorithm+Problem+Set+Analysis") Match Editorials
1818

19-
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost(ng-href="https://www.{{DOMAIN}}/community/getting-started/") Learn More
19+
a.tc-btn.tc-btn-s.tc-btn-wide.tc-btn-ghost(ng-href="https://www.{{DOMAIN}}/member-onboarding") Learn More
2020

2121
.srms-links(ng-hide="vm.loading")
2222
a(ui-sref="my-srms") View Past SRMs

app/services/tcAuth.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
} else {
155155
$log.error('Unsupported social login provider: ' + provider);
156156
reject({
157-
status: "failed",
157+
status: "FAILED",
158158
"error": "Unsupported social login provider '" + provider + "'"
159159
});
160160
}

assets/css/my-dashboard/srms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
.srm-links-card {
7979
display: inline;
8080
width: 270px;
81-
height: 319px;
81+
height: 321px;
8282
margin-bottom: 15px;
8383
padding: 0 21px;
8484
border: 1px solid #DCDCDC;

0 commit comments

Comments
 (0)