2016-03-23 18:39:41 +01:00
|
|
|
<style type="text/css">
|
|
|
|
.token {
|
|
|
|
margin: auto;
|
|
|
|
width: 16em;
|
|
|
|
background-color: rgba(230, 208, 137, 0.49);
|
|
|
|
border-color: #d1d1d1;
|
|
|
|
border-radius: 0.2em;
|
|
|
|
padding: 2em;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<% active_provider = AuthProvider.active %>
|
|
|
|
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
2016-03-30 16:48:47 +02:00
|
|
|
<%
|
2019-10-02 14:37:47 +02:00
|
|
|
url_path = File.join(root_url, 'sso-redirect')
|
2016-03-30 16:48:47 +02:00
|
|
|
%>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2020-05-13 15:02:03 +02:00
|
|
|
<p><%= t(".body.the_platform") %> <%= Setting.get('fablab_name') %> <%= t(".body.is_changing_its_auth_system_and_will_now_use") %> <%= active_provider.name %> <%= t(".body.instead_of") %> <%= AuthProvider.find_by(status: 'previous').name %>.</p>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
<p><%= t('.body.consequence_of_the_modification') %></p>
|
|
|
|
|
2016-03-30 16:48:47 +02:00
|
|
|
<p><%= t('.body.to_use_the_platform_thanks_for') %> <a href="<%=url_path%>?auth_token=<%= @attached_object.auth_token %>" target="_blank">
|
2016-03-23 18:39:41 +01:00
|
|
|
<%= t('.body.create_an_account_on') %> <%= active_provider.name %> <%= t('.body.or_use_an_existing_account_clicking_here') %></a></p>
|
|
|
|
|
|
|
|
<p><%= t('.body.in_case_of_problem_enter_the_following_code') %></p>
|
|
|
|
|
|
|
|
<div class="token">
|
|
|
|
<%= @attached_object.auth_token %>
|
|
|
|
</div>
|