Commit be9d0858 by Thanh Hung Pham

Send mail when change password successful

parent 2a6d1d97
<p>Hello <%= @resource.email %>!</p> <p>Dear <%= @resource.email %>,</p>
<p>We're contacting you to notify you that your password has been changed.</p> <p>You have a new password!</p>
<p>Your password for signing in to VenJOB was recently changed. If you made this change, then we're all set. </p>
<p>If you did not make this change, please reset your password to secure your account. Then reply to this email to notify us.</p>
<p>Either way, feel free to reach out with any questions you might have. We're here to help.</p>
<p>Best,</p>
<p>Hello <%= @resource.email %>!</p> <p>We received a request to reset the password associated with this e-mail address. If you made this request, please follow the instructions below.</p>
<p>Someone has requested a link to change your password. You can do this through the link below.</p> <p>Click the link below to reset your password using our secure server:</p>
<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p> <p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
<p>If you didn't request this, please ignore this email.</p> <p>If you did not request to have your password reset you can safely ignore this email. Rest assured your account is safe.</p>
<p>Your password won't change until you access the link above and create a new one.</p> <p>Please also be noted that the above link is valid for 24 hours.</p>
<p>
Best,
</p>
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
<%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control' %> <%= f.password_field :password_confirmation, autocomplete: "off", class: 'form-control' %>
</div> </div>
<%= f.submit "Confirm your email", class: 'btn btn-primary' %> <div class="actions">
<%= f.submit "Confirm your email", class: 'btn btn-primary' %>
</div>
<% end %> <% end %>
</div> </div>
...@@ -115,6 +115,7 @@ Devise.setup do |config| ...@@ -115,6 +115,7 @@ Devise.setup do |config|
# Send a notification email when the user's password is changed. # Send a notification email when the user's password is changed.
# config.send_password_change_notification = false # config.send_password_change_notification = false
config.send_password_change_notification = true
# ==> Configuration for :confirmable # ==> Configuration for :confirmable
# A period that the user is allowed to access the website even without # A period that the user is allowed to access the website even without
......
...@@ -18,15 +18,15 @@ en: ...@@ -18,15 +18,15 @@ en:
unconfirmed: "You have to confirm your email address before continuing." unconfirmed: "You have to confirm your email address before continuing."
mailer: mailer:
confirmation_instructions: confirmation_instructions:
subject: "Confirmation instructions" subject: "Welcome To VeNJOB! Confirm Your Email"
reset_password_instructions: reset_password_instructions:
subject: "Reset password instructions" subject: "VeNJOB Password Assistance"
unlock_instructions: unlock_instructions:
subject: "Unlock instructions" subject: "Unlock instructions"
email_changed: email_changed:
subject: "Email Changed" subject: "Email Changed"
password_change: password_change:
subject: "Password Changed" subject: "VeNJOB Password Assistance: Your password has been reset"
omniauth_callbacks: omniauth_callbacks:
failure: "Could not authenticate you from %{kind} because \"%{reason}\"." failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
success: "Successfully authenticated from %{kind} account." success: "Successfully authenticated from %{kind} account."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment