Skip to content

Commit

Permalink
FIX: Persona login was not using promises
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed May 31, 2013
1 parent 9ba25b2 commit fea3f32
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/views/common/_persona_javascript.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
navigator.id.watch({
onlogin: function(assertion) {
if (readyCalled) {

Discourse.ajax('/auth/persona/callback', {
type: 'POST',
data: { 'assertion': assertion },
success: function(data, textStatus, jqXHR) {
Discourse.authenticationComplete(data);
},
dataType: 'json'
}).then(function(data) {
Discourse.authenticationComplete(data);
});
}
},
Expand Down

0 comments on commit fea3f32

Please sign in to comment.