Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
775834f1
Commit
775834f1
authored
Mar 12, 2018
by
zheng liu
Browse files
Options
Browse Files
Download
Plain Diff
Merged in dev (pull request #75)
Dev
parents
3ca0ba5c
bcd7c351
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app.service.ts
src/app/app.service.ts
+1
-1
guacamole.component.ts
src/app/elements/guacamole/guacamole.component.ts
+1
-1
No files found.
src/app/app.service.ts
View file @
775834f1
...
@@ -290,7 +290,7 @@ export class AppService implements OnInit {
...
@@ -290,7 +290,7 @@ export class AppService implements OnInit {
err
=>
{
err
=>
{
// this._logger.error(err);
// this._logger.error(err);
User
.
logined
=
false
;
User
.
logined
=
false
;
window
.
location
.
href
=
document
.
location
.
origin
+
'/users/login?next='
+
document
.
location
.
pathname
;
window
.
location
.
href
=
document
.
location
.
origin
+
'/users/login?next='
+
document
.
location
.
pathname
+
document
.
location
.
search
;
// this._router.navigate(['login']);
// this._router.navigate(['login']);
},
},
// () => {
// () => {
...
...
src/app/elements/guacamole/guacamole.component.ts
View file @
775834f1
...
@@ -29,6 +29,7 @@ export class ElementGuacamoleComponent implements OnInit {
...
@@ -29,6 +29,7 @@ export class ElementGuacamoleComponent implements OnInit {
ngOnInit
()
{
ngOnInit
()
{
// /guacamole/api/tokens will redirect to http://guacamole/api/tokens
// /guacamole/api/tokens will redirect to http://guacamole/api/tokens
const
base
=
window
.
btoa
(
this
.
host
.
id
+
'
\
0'
+
'c'
+
'
\
0'
+
'jumpserver'
);
if
(
this
.
token
)
{
if
(
this
.
token
)
{
this
.
userid
=
this
.
_localStorage
.
get
(
'user'
);
this
.
userid
=
this
.
_localStorage
.
get
(
'user'
);
this
.
_http
.
get_guacamole_token
(
this
.
userid
).
subscribe
(
this
.
_http
.
get_guacamole_token
(
this
.
userid
).
subscribe
(
...
@@ -45,7 +46,6 @@ export class ElementGuacamoleComponent implements OnInit {
...
@@ -45,7 +46,6 @@ export class ElementGuacamoleComponent implements OnInit {
);
);
});
});
}
else
{
}
else
{
const
base
=
window
.
btoa
(
this
.
host
.
id
+
'
\
0'
+
'c'
+
'
\
0'
+
'jumpserver'
);
if
(
environment
.
production
)
{
if
(
environment
.
production
)
{
if
(
DataStore
.
guacamole_token
)
{
if
(
DataStore
.
guacamole_token
)
{
this
.
_http
.
guacamole_add_asset
(
User
.
id
,
this
.
host
.
id
,
this
.
userid
).
subscribe
(
this
.
_http
.
guacamole_add_asset
(
User
.
id
,
this
.
host
.
id
,
this
.
userid
).
subscribe
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment