Added CR suggestions

pull/14844/head
antoniocarlon 5 years ago
parent 800876c498
commit 0906c517cb

@ -19,10 +19,7 @@ class PasswordResetsController < ApplicationController
end
@user = Carto::User.find_by_email(email)
if @user
@user.send_password_reset!
end
@user.try(:send_password_reset!)
respond_to do |format|
format.html { redirect_to CartoDB.path(self, "sent_password_reset") }

@ -1,4 +1,4 @@
<% content_for :title do %>Password sent<% end %>
<% title = 'Ok, we have sent you an email' %>
<% description = "There you will find the instructions for entering your account and change — if desired — your password. If you don't see the email in your inbox make sure that the email address is correct" %>
<% description = "There you will find the instructions for entering your account and change — if desired — your password. If you don't see the email in your inbox, make sure that the email address is correct" %>
<%= render :partial => 'message', locals: { title: title, description: description } %>
Loading…
Cancel
Save