Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
806
Merge Requests
53
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
f6fc084f
Commit
f6fc084f
authored
4 minutes ago
by
Emiliano Balbuena
Browse files
Options
Download
(chore): Remove old auth code
parent
c8839dbd
goal/pro-sso
1 merge request
!656
WIP: SSO for Pro sites
Pipeline
#96004651
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
src/app/modules/pro/channel/channel.component.ts
View file @
f6fc084f
...
...
@@ -229,7 +229,7 @@ export class ProChannelComponent implements OnInit, AfterViewInit, OnDestroy {
this
.
detectChanges
();
try
{
this
.
channel
=
await
this
.
channelService
.
load
AndAuth
(
this
.
username
);
this
.
channel
=
await
this
.
channelService
.
load
(
this
.
username
);
this
.
bindCssVariables
();
this
.
shouldOpenWireModal
();
...
...
This diff is collapsed.
src/app/modules/pro/channel/channel.service.ts
View file @
f6fc084f
...
...
@@ -74,21 +74,16 @@ export class ProChannelService implements OnDestroy {
this
.
isLoggedIn$
.
unsubscribe
();
}
async
load
AndAuth
(
id
:
string
):
Promise
<
MindsUser
>
{
async
load
(
id
:
string
):
Promise
<
MindsUser
>
{
try
{
this
.
currentChannel
=
void
0
;
const
response
=
(
await
this
.
client
.
get
(
`api/v2/pro/channel/
${
id
}
`
))
as
{
channel
;
me
?;
};
this
.
currentChannel
=
response
.
channel
;
// if (this.site.isProDomain && response.me) {
// this.session.login(response.me);
// }
if
(
!
this
.
currentChannel
.
pro_settings
.
tag_list
)
{
this
.
currentChannel
.
pro_settings
.
tag_list
=
[];
}
...
...
@@ -111,7 +106,6 @@ export class ProChannelService implements OnDestroy {
try
{
const
response
=
(
await
this
.
client
.
get
(
`api/v2/pro/channel/
${
id
}
`
))
as
{
channel
;
me
?;
};
this
.
currentChannel
=
response
.
channel
;
...
...
This diff is collapsed.
Please
register
or
sign in
to comment