Parcourir la source

Improve login error for OAuth flow

tags/v1.1.4
Mark Felder il y a 5 ans
Parent
révision
f62c1d6266
2 fichiers modifiés avec 30 ajouts et 0 suppressions
  1. +26
    -0
      lib/pleroma/web/templates/layout/app.html.eex
  2. +4
    -0
      lib/pleroma/web/templates/o_auth/o_auth/show.html.eex

+ 26
- 0
lib/pleroma/web/templates/layout/app.html.eex Voir le fichier

@@ -67,6 +67,32 @@
font-weight: 500;
font-size: 16px;
}

.alert-danger {
box-sizing: border-box;
width: 100%;
color: #D8000C;
background-color: #FFD2D2;
border-radius: 4px;
border: none;
padding: 10px;
margin-top: 20px;
font-weight: 500;
font-size: 16px;
}

.alert-info {
box-sizing: border-box;
width: 100%;
color: #00529B;
background-color: #BDE5F8;
border-radius: 4px;
border: none;
padding: 10px;
margin-top: 20px;
font-weight: 500;
font-size: 16px;
}
</style>
</head>
<body>


+ 4
- 0
lib/pleroma/web/templates/o_auth/o_auth/show.html.eex Voir le fichier

@@ -1,5 +1,9 @@
<%= if get_flash(@conn, :info) do %>
<p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
<% end %>
<%= if get_flash(@conn, :error) do %>
<p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
<% end %>
<h2>OAuth Authorization</h2>
<%= form_for @conn, o_auth_path(@conn, :authorize), [as: "authorization"], fn f -> %>
<%= label f, :name, "Name or email" %>


Chargement…
Annuler
Enregistrer