mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:01:20 +08:00
Use AJAX for submitting Persona credentials.
Fixes issue with needing to unblock popups.
This commit is contained in:
@ -24,6 +24,11 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
when "persona"
|
||||
create_or_sign_on_user_using_persona(auth_token)
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.json { render :json => @data }
|
||||
end
|
||||
end
|
||||
|
||||
def failure
|
||||
|
Reference in New Issue
Block a user