<% if @resource.last_sign_in_at.nil? %> <%= render partial: "password_change_initial" %> <% else %> <%= render partial: "password_change_forgotten" %> <% end %>