1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

fix locale of notify_auth_changed mails

This commit is contained in:
Sylvain 2016-09-13 10:48:07 +02:00
parent caa3cd4417
commit b7c41e89c4
2 changed files with 3 additions and 1 deletions

View File

@ -214,7 +214,7 @@ en:
is_changing_its_auth_system_and_will_now_use: "is actually changing its user identification system and will use"
instead_of: "instead of"
consequence_of_the_modification: "Because of this change you won't be able to login to the website with your actual usernames"
to_use_the_platform_thanks_for: "to keep on using the website, please"
to_use_the_platform_thanks_for: "To keep on using the website, please"
create_an_account_on: "create an account on"
or_use_an_existing_account_clicking_here: "or use an existing account by clicking here"
in_case_of_problem_enter_the_following_code: "In case of problem with this link, you can enter the following code at your first connection attempt in order to migrate your actual account into the new authentification system:"

View File

@ -215,6 +215,8 @@ namespace :fablab do
desc 'notify users that the auth provider has changed'
task notify_auth_changed: :environment do
I18n.locale = I18n.default_locale
# notify every users if the provider is not local database provider
if AuthProvider.active.providable_type != DatabaseProvider.name
User.all.each do |user|