mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Use no_ember
styling for omniauth error page
This commit is contained in:
parent
9e03b5c69a
commit
cef64e8f03
@ -16,7 +16,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
|||||||
|
|
||||||
skip_before_action :redirect_to_login_if_required
|
skip_before_action :redirect_to_login_if_required
|
||||||
|
|
||||||
layout false
|
layout 'no_ember'
|
||||||
|
|
||||||
def self.types
|
def self.types
|
||||||
@types ||= Enum.new(:facebook, :instagram, :twitter, :google, :yahoo, :github, :persona, :cas)
|
@types ||= Enum.new(:facebook, :instagram, :twitter, :google, :yahoo, :github, :persona, :cas)
|
||||||
@ -80,7 +80,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
|||||||
|
|
||||||
def failure
|
def failure
|
||||||
flash[:error] = I18n.t("login.omniauth_error")
|
flash[:error] = I18n.t("login.omniauth_error")
|
||||||
render layout: 'no_ember'
|
render 'failure'
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.find_authenticator(name)
|
def self.find_authenticator(name)
|
||||||
|
@ -1,11 +1,4 @@
|
|||||||
<html>
|
<div id="simple-container">
|
||||||
<head>
|
|
||||||
<%= render partial: "layouts/head" %>
|
|
||||||
<%= render partial: "common/special_font_face" %>
|
|
||||||
<%= render partial: "common/discourse_stylesheet" %>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="simple-container">
|
|
||||||
<%if flash[:error].present? %>
|
<%if flash[:error].present? %>
|
||||||
<div class='alert alert-error'>
|
<div class='alert alert-error'>
|
||||||
<%=flash[:error]%>
|
<%=flash[:error]%>
|
||||||
@ -15,6 +8,4 @@
|
|||||||
<%= t 'login.omniauth_error_unknown' %>
|
<%= t 'login.omniauth_error_unknown' %>
|
||||||
</div>
|
</div>
|
||||||
<%end%>
|
<%end%>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user