Skip to content

Commit

Permalink
Merge pull request #457 from jerone/issue-456
Browse files Browse the repository at this point in the history
Fixes switching form of authentication not returning 404;

merge
  • Loading branch information
Martii committed Dec 1, 2014
2 parents b05a49d + 2e44fa9 commit 50589f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ exports.callback = function (aReq, aRes, aNext) {
var username = aReq.session.username;
var newstrategy = aReq.session.newstrategy;
var strategyInstance = null;
var doneUrl = aReq.session.user ? '/user/edit' : '/';
var doneUrl = aReq.session.user ? '/user/preferences' : '/';

// The callback was called improperly
if (!strategy || !username) { return aNext(); }
Expand Down

0 comments on commit 50589f1

Please sign in to comment.