app/controllers/doorkeeper_override/authorizations_controller.rb
def change_user
      sign_out
      flash[:notice] = "Signed out. Login to continue authorization."
      store_location_for(:user, request.referrer)
      redirect_to(new_user_session_path)
    end
# Additional functionality to support change user button. This logs the user out, stores the page the url
# for authorization for later return, and sends the user to the sign in page.
Additional functionality to support change user button. This logs the user out, stores the page the url
for authorization for later return, and sends the user to the sign in page.
Additional functionality to support change user button . This logs the user out stores the page the url for authorization for later return and sends the user to the sign in page .
def change_user
      sign_out
      flash[:notice] = "Signed out. Login to continue authorization."
      store_location_for(:user, request.referrer)
      redirect_to(new_user_session_path)
    end
def change_user sign_out flash [ :notice ] = "Signed out. Login to continue authorization." store_location_for ( :user , request . referrer ) redirect_to ( new_user_session_path ) end
Additional functionality to support change user button.
Additional functionality to support change user button .