Skip to content

Commit

Permalink
Remove a few reverse uses.
Browse files Browse the repository at this point in the history
brianloveswords committed Nov 16, 2012

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c243cca commit 5ef50b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/backpack.js
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ exports.authenticate = function authenticate(request, response) {
request.headers['accept'].indexOf('application/json') != -1;

if (!request.body || !request.body['assertion']) {
return formatResponse(reverse('backpack.login'), "assertion expected");
return formatResponse('/backpack/login', "assertion expected");
}

var ident = configuration.get('identity');
@@ -86,7 +86,7 @@ exports.authenticate = function authenticate(request, response) {

exports.signout = function signout(request, response) {
request.session = {};
response.redirect(reverse('backpack.login'), 303);
response.redirect('/backpack/login', 303);
};

/**
@@ -171,7 +171,7 @@ exports.manage = function manage(request, response, next) {

if (criteria[0] === '/') body.badge.criteria = origin + criteria;
if (evidence && evidence[0] === '/') body.evidence = origin + evidence;
// Nobody wants to see the hash in the UI, apparently.
// Nobody wants to see the hash in the UI, apparently.
if (body.recipient.match(/\w+(\d+)?\$.+/)) body.recipient = user.get('email');

badgeIndex[badge.get('id')] = badge;

0 comments on commit 5ef50b0

Please sign in to comment.