Skip to content

Commit 0d736a0

Browse files
committed
Fixes
1 parent c4919b7 commit 0d736a0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<h1>Reset password</h1>
22

3-
<p>Resetting password for <%= @user.login %></p>
3+
<p>Resetting password for <%= @user.email %></p>
44

55
<%= form_tag reset_password_path(key: @key.token), method: :delete do %>
66
<%= labeled_field('New password: ', password_field_tag(:password)) %>
77
<%= labeled_field('Confirm new password: ', password_field_tag(:password_confirmation)) %>
88
<%= submit_tag 'Set password' %>
99
<% end %>
10-

lib/submission_packager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def copy_extra_student_files(tmc_project_file, received, dest)
157157
from = "#{received}/#{rel_path}"
158158
to = "#{dest}/#{rel_path}"
159159
next unless File.exist?(from)
160-
FileUtils.rm(to) if File.exist?(to)
160+
FileUtils.rm_rf(to, secure: true) if File.exist?(to)
161161
FileUtils.mkdir_p(File.dirname(to))
162162
FileUtils.cp(from, to)
163163
end

0 commit comments

Comments
 (0)