Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c7576037
authored
9 years ago
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add and remove logs
1 parent
fb372a32
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
cli/actions.js
cli/actions.js
View file @
c757603
...
@@ -67,8 +67,6 @@ function login(server) {
...
@@ -67,8 +67,6 @@ function login(server) {
var
password
=
readlineSync
.
question
(
'Password: '
,
{
hideEchoBack
:
true
});
var
password
=
readlineSync
.
question
(
'Password: '
,
{
hideEchoBack
:
true
});
superagent
.
get
(
server
+
API
+
'/'
).
query
({
username
:
username
,
password
:
password
}).
end
(
function
(
error
,
result
)
{
superagent
.
get
(
server
+
API
+
'/'
).
query
({
username
:
username
,
password
:
password
}).
end
(
function
(
error
,
result
)
{
console
.
log
(
result
.
status
);
if
(
result
.
status
===
401
)
{
if
(
result
.
status
===
401
)
{
console
.
log
(
'Login failed.'
);
console
.
log
(
'Login failed.'
);
process
.
exit
(
1
);
process
.
exit
(
1
);
...
@@ -81,6 +79,8 @@ function login(server) {
...
@@ -81,6 +79,8 @@ function login(server) {
config
.
set
(
'password'
,
password
);
config
.
set
(
'password'
,
password
);
gQuery
=
{
username
:
username
,
password
:
password
};
gQuery
=
{
username
:
username
,
password
:
password
};
console
.
log
(
'Done'
);
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment