Merge branch 'fixes' into 'master'
Fixes See merge request framasoft/mobilizon!579
This commit is contained in:
commit
5a707f30db
@ -78,7 +78,7 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticator do
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
{:error, err}
|
{:error, err}
|
||||||
when err in [:ldap_search_email_not_found, :ldap_search_email_not_found] ->
|
when err in [:ldap_search_email_not_found, :ldap_search_missing_attributes] ->
|
||||||
{:ldap, err}
|
{:ldap, err}
|
||||||
|
|
||||||
{:error, error} ->
|
{:error, error} ->
|
||||||
@ -146,7 +146,7 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticator do
|
|||||||
|
|
||||||
{:cn, err} ->
|
{:cn, err} ->
|
||||||
Logger.error("Could not find LDAP attribute CN: #{inspect(err)}")
|
Logger.error("Could not find LDAP attribute CN: #{inspect(err)}")
|
||||||
{:error, :ldap_searcy_missing_attributes}
|
{:error, :ldap_search_missing_attributes}
|
||||||
|
|
||||||
error ->
|
error ->
|
||||||
error
|
error
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
|
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
|
||||||
<p style="margin: 0;">
|
<p style="margin: 0;">
|
||||||
<%= gettext "Hi there! It seems like you wanted to change the email address linked to your account on <b>%{instance}</b>. If you still wish to do so, please click the button below to confirm the change. You will then be able to log in to %{instance} with this new email address.", %{instance: @instance_name} %>
|
<%= gettext("Hi there! It seems like you wanted to change the email address linked to your account on <b>%{instance}</b>. If you still wish to do so, please click the button below to confirm the change. You will then be able to log in to %{instance} with this new email address.", %{instance: @instance_name}) |> raw %>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -59,6 +59,13 @@
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td bgcolor="#ffffff" align="left" style="padding: 20px 30px 0px 30px; color: #474467; font-family: 'Roboto', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
|
||||||
|
<p>
|
||||||
|
<%= gettext("If you did not trigger this change yourself, it is likely that someone has gained access to your %{host} account. Please log in and change your password immediately. If you cannot login, contact the admin on %{host}.", host: @instance[:name]) %>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<!--[if (gte mso 9)|(IE)]>
|
<!--[if (gte mso 9)|(IE)]>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user