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 8dc61bb6
authored
6 years ago
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error is not defined here
1 parent
47ba3ae4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/auth.js
src/auth.js
View file @
8dc61bb
...
...
@@ -96,7 +96,7 @@ function verifyUser(username, password, callback) {
result
.
on
(
'searchEntry'
,
function
(
entry
)
{
items
.
push
(
entry
.
object
);
});
result
.
on
(
'error'
,
callback
);
result
.
on
(
'end'
,
function
(
result
)
{
if
(
result
.
status
!==
0
||
items
.
length
===
0
)
return
callback
(
error
);
if
(
result
.
status
!==
0
||
items
.
length
===
0
)
return
callback
(
'Invalid credentials'
);
// pick the first found
var
user
=
items
[
0
];
...
...
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