Skip to content

Commit

Permalink
Fixes switching form of authentication not returning 404;
Browse files Browse the repository at this point in the history
  • Loading branch information
jerone committed Nov 27, 2014
1 parent ee358a3 commit 2e44fa9
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 2e44fa9

Please sign in to comment.