Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
Etherpad
ep_mypads
Commits
a185757d
Commit
a185757d
authored
Apr 24, 2015
by
Yakulu
Browse files
debug fix
parent
90c0ee1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
sockio.js
View file @
a185757d
...
...
@@ -125,9 +125,7 @@ module.exports = (function () {
var
loginPath
=
pre
+
'
login
'
;
socket
.
on
(
loginPath
,
function
(
data
)
{
console
.
log
(
data
);
passport
.
authenticate
(
'
jwt
'
,
function
()
{
console
.
log
(
'
here
'
);
if
(
err
)
{
return
socket
.
emit
({
error
:
err
.
message
});
}
if
(
!
user
)
{
return
socket
.
emit
({
error
:
info
.
message
});
}
socket
.
emit
({
...
...
spec/backend/api.spec.js
View file @
a185757d
...
...
@@ -574,7 +574,6 @@
rq
.
put
(
userRoute
+
'
/mikey
'
,
b
,
function
()
{
b
.
body
.
login
=
'
mike
'
;
rq
.
put
(
userRoute
+
'
/mikey
'
,
b
,
function
(
err
,
resp
,
body
)
{
console
.
log
(
body
);
expect
(
resp
.
statusCode
).
toBe
(
200
);
expect
(
body
.
success
).
toBeTruthy
();
expect
(
body
.
key
).
toBe
(
'
mikey
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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