mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Merge pull request #5661 from sebgie/remove-duplicate-func
Remove duplicate function
This commit is contained in:
commit
26f7c5e0ad
1 changed files with 0 additions and 10 deletions
|
@ -31,16 +31,6 @@ function registerUnsuccessfulBearerStrategy() {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerSuccessfulBearerStrategy() {
|
|
||||||
// register fake BearerStrategy which always authenticates
|
|
||||||
passport.use(new BearerStrategy(
|
|
||||||
function strategy(accessToken, done) {
|
|
||||||
accessToken.should.eql(token);
|
|
||||||
return done(null, user, info);
|
|
||||||
}
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('authenticate', function () {
|
describe('authenticate', function () {
|
||||||
var res, req, next, sandbox;
|
var res, req, next, sandbox;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue