Slight cleanup in the Persona sign in code
[?]
Nov 5, 2013, 1:10 PM
P75LFRF4GMC5KSIHC4XDBFRYIO36XUABQ2BN3EJXL42764BFAZUACDependencies
- [2]
PFB5ZUQWFix legacy login - [3]
XMB4MTRLShow sign in as success - [4]
36ZTCZ4FAdd basic Persona support - [5]
2CZSW5S5Don't redirect to /login if authentication is required - [6]
LZVO64YGMerge in the first bits of the API work - [7]
XUKHBDR5Prevent Persona users from setting a password - [8]
D44B24QCStore the account type ("hydra" or "persona") explicitly in the database - [*]
XJRJ4J7MAdd user registration - [*]
J5UVLXOK* Start of a basic Catalyst web interface.
Change contents
- edit in src/lib/Hydra/Controller/User.pm at line 49
$c->stash->{json} = {}; - replacement in src/lib/Hydra/Controller/User.pm at line 80
$c->stash->{json}->{result} = "ok";$self->status_no_content($c); - replacement in src/root/layout.tt at line 127
$.post("[% c.uri_for('/persona-login') %]", { assertion: assertion }).done(function(data) {if (data.error)bootbox.alert("Login failed: " + data.error);elsewindow.location.reload();}).fail(function() { bootbox.alert("Server request failed!"); });requestJSON({url: "[% c.uri_for('/persona-login') %]",data: "assertion=" + assertion,type: 'POST',success: function(data) { window.location.reload(); }});