Skip to content

Commit 2166acd

Browse files
committed
refactor(app): Remove an extra function parameter
Change the parameters passed into the signToken function. This change is trivial and tidies up the code. No breaking change. Fixes issue angular-fullstack#382
1 parent 75ba13d commit 2166acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/templates/server/auth(auth)/auth.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function setTokenCookie(req, res) {
8686
message: 'Something went wrong, please try again.'
8787
});
8888
}
89-
var token = signToken(req.user._id, req.user.role);
89+
var token = signToken(req.user._id);
9090
res.cookie('token', JSON.stringify(token));
9191
res.redirect('/');
9292
}

0 commit comments

Comments
 (0)