Skip to content

Commit

Permalink
Pass email address along when resetting password
Browse files Browse the repository at this point in the history
The signature verification code uses the username, email address and
expiry parameters to validate the signature (see
src/oc-id/app/models/signature.rb), but we don't pass it along as a
hidden form parameter. This means that all password reset attempts fail
with a signature doesn't match message. Passing along the email address
as well fixes this.
  • Loading branch information
mivok committed Dec 9, 2016
1 parent 2d06ce7 commit 2f800f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/oc-id/app/views/password_resets/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
<%= hidden_field_tag :expires, params[:expires] %>
<%= hidden_field_tag :signature, params[:signature] %>
<%= hidden_field_tag :username, params[:username] %>
<%= hidden_field_tag :email, params[:email] %>
<% end -%>
</div>

0 comments on commit 2f800f2

Please sign in to comment.