forgot_password.email.mustache 1.8 KB

1234567891011121314151617181920212223242526272829
  1. <% define_content :link do %>
  2. <%= login_url %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. {{#t}}Forgot Password: Canvas{{/t}}
  6. <% end %>
  7. <% pseudonyms = asset.user.all_active_pseudonyms %>
  8. <% first_pseudonym = pseudonyms.first %>
  9. {{#t}}You requested a confirmation of your password for logging into Canvas.{{/t}}
  10. <% if pseudonyms.length > 1 %><%= before_label('associated_with_accounts', 'This address is associated with the following accounts') %>
  11. <% pseudonyms.each do |p| %>
  12. - <%= t('login_at_account', '%{login_email} at %{account_name}', :login_email => p.unique_id, :account_name => p.account.display_name) %>
  13. <% if p.managed_password? %>{{#t}}this login's credentials are managed by %{account_name}", :account_name => p.account.name) %><% else %><%= before_label('change_password_at', "change this login's password at{{/t}}
  14. <% channel = p.communication_channel || asset %>
  15. <%= confirm_change_password_url(p, channel.confirmation_code, host: HostUrl.context_host(p.account)) %>
  16. <% end %>
  17. <% end %>
  18. <% else %>
  19. <%= t('associated_login', 'This address is associated with the login, "%{login_identifier}".', :login_identifier => first_pseudonym.unique_id) %><% if first_pseudonym.managed_password? %> <%= t('password_from_account', "The password for this login should have been given to you by the system administrators at %{account_name}, and Instructure doesn't have access to your password. If your password is not working, please contact the system administrators about changing or verifying your password.", :account_name => first_pseudonym.account.display_name) %><% else %>
  20. <%= before_label('click_to_reset', 'To set a new password, please click the following link') %>
  21. <%= confirm_change_password_url(first_pseudonym, asset.confirmation_code, host: HostUrl.context_host(first_pseudonym.account)) %>
  22. <% end %>
  23. <% end %>