This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +20
-15
lines changed
directives/profile-widget Expand file tree Collapse file tree 5 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 98
98
99
99
vm . socialRegister = function ( provider ) {
100
100
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
+ }
111
116
} )
112
117
. catch ( function ( result ) {
113
118
switch ( result . status ) {
Original file line number Diff line number Diff line change 27
27
.links
28
28
a.badges.link ( ng-click ="profileVm.showBadges()" , ng-show ="profileVm.profile.badges.Achievements.length > 0" )
29
29
| 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}}" )
31
31
| Forum Posts
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ section(ng-hide="vm.loading")
12
12
.flex-wrapper
13
13
h2 Practice on past problems
14
14
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
16
16
17
17
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
18
18
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
20
20
21
21
.srms-links ( ng-hide ="vm.loading" )
22
22
a( ui-sref ="my-srms" ) View Past SRMs
Original file line number Diff line number Diff line change 154
154
} else {
155
155
$log . error ( 'Unsupported social login provider: ' + provider ) ;
156
156
reject ( {
157
- status : "failed " ,
157
+ status : "FAILED " ,
158
158
"error" : "Unsupported social login provider '" + provider + "'"
159
159
} ) ;
160
160
}
Original file line number Diff line number Diff line change 78
78
.srm-links-card {
79
79
display : inline ;
80
80
width : 270px ;
81
- height : 319 px ;
81
+ height : 321 px ;
82
82
margin-bottom : 15px ;
83
83
padding : 0 21px ;
84
84
border : 1px solid #DCDCDC ;
You can’t perform that action at this time.
0 commit comments