Don't redirect to /login if authentication is required
[?]
Jul 9, 2013, 10:02 AM
2CZSW5S53UW7ACDNT5T3UQNJKFBCXCBYLQ5CL6GVCCOMKBGXZIEQCDependencies
- [2]
36ZTCZ4FAdd basic Persona support - [3]
QTFVCDIFadded hide feature for project/jobset - [4]
XJRJ4J7MAdd user registration - [5]
LBNVQXUB* Build the /build stuff in a separate controller. - [6]
OEPUOUNBUsing twitter bootstrap for more consistent looks for Hydra - [7]
LC64D4PUCorrectly redirect to the referring page when logging in - [8]
J5UVLXOK* Start of a basic Catalyst web interface. - [9]
A52HEFHQ* Allow builds to be restarted (if they failed with a transient error, - [10]
LSZLZHJYAllow users to edit their own settings - [11]
3PNG7NIBRemove trailing whitespace - [12]
NABL63FI* hydra: project members can do stuff that the owner can do - [13]
LZVO64YGMerge in the first bits of the API work - [14]
FPK5LF53* Put the project-related actions in a separate controller. Put the - [15]
5NO7NCKT* Refactoring. - [16]
CS7T2XFI - [17]
N45RZUQ6Reduce I/O in build listings by only fetching required columns
Change contents
- replacement in src/lib/Hydra/Controller/User.pm at line 78
die if $c->request->method ne "POST";requirePost($c); - replacement in src/lib/Hydra/Controller/User.pm at line 88
Catalyst::Exception->throw("Did not get a response from Persona.") unless $response->is_success;error($c, "Did not get a response from Persona.") unless $response->is_success; - replacement in src/lib/Hydra/Controller/User.pm at line 91
Catalyst::Exception->throw("Persona says: $d->{reason}") if $d->{status} ne "okay";error($c, "Persona says: $d->{reason}") if $d->{status} ne "okay"; - edit in src/lib/Hydra/Controller/User.pm at line 109
$c->flash->{flashMsg} = "You are now signed in as <tt>" . $email . "</tt>";}sub persona_logout :Path('/persona-logout') Args(0) {my ($self, $c) = @_;$c->stash->{json} = {};requirePost($c);$c->flash->{flashMsg} = "You are no longer signed in." if $c->user_exists();$c->logout; - replacement in src/lib/Hydra/Helper/CatalystUtils.pm at line 92
my ($c, $msg) = @_;my ($c, $msg, $status) = @_;$c->response->status($status) if defined $status; - replacement in src/lib/Hydra/Helper/CatalystUtils.pm at line 101
$c->response->status(404);error($c, $msg);error($c, $msg, 404); - replacement in src/lib/Hydra/Helper/CatalystUtils.pm at line 116
$c->response->redirect($c->uri_for('/login'));$c->detach; # doesn't returnerror($c, "This page requires you to sign in.", 403); - replacement in src/lib/Hydra/Helper/CatalystUtils.pm at line 132
error($c, "Only the project members or administrators can perform this operation.")error($c, "Only the project members or administrators can perform this operation.", 403) - edit in src/lib/Hydra/Helper/CatalystUtils.pm at line 139
- edit in src/lib/Hydra/Helper/CatalystUtils.pm at line 145
- replacement in src/lib/Hydra/Helper/CatalystUtils.pm at line 146
error($c, "Only administrators can perform this operation.")error($c, "Only administrators can perform this operation.", 403) - replacement in src/root/layout.tt at line 124
$.ajax({type: 'POST',url: '/logout',success: function(res, status, xhr) { window.location.reload(); },error: function(xhr, status, err) { alert("Logout failure: " + err); }});$.post("[% c.uri_for('/persona-logout') %]").done(function(data) {window.location.reload();}).fail(function() { bootbox.alert("Server request failed!"); });