Skip to content

Commit

Permalink
Actually fix 500
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Jan 16, 2024
1 parent e7d6fb3 commit ab205f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/devise/otp_tokens/_token_secret.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<%= I18n.t('reset_explain', :scope => 'devise.otp.token_secret') %>
<strong><%= I18n.t('reset_explain_warn', :scope => 'devise.otp.token_secret') %></strong>
</p>
<p><%= button_to I18n.t('reset_otp', :scope => 'devise.otp.token_secret'), current_user, :method => :delete, :data => { "turbo-method": "DELETE" }, class: "btn btn-danger" %></p>
<p><%= button_to I18n.t('reset_otp', :scope => 'devise.otp.token_secret'), @resource, :method => :delete, :data => { "turbo-method": "DELETE" }, class: "btn btn-danger" %></p>
<% else %>
<%= form_for(current_user, :as => resource_name, :url => validate_otp_path, :html => { :method => :post, "data-turbo" => false }) do |f| %>

Expand Down
2 changes: 2 additions & 0 deletions app/views/devise/otp_tokens/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<% title "Two Factor Authentication Settings" %>

<div class="row">
<div class="col-md-8 col-md-offset-2" style="margin-bottom: 40px;">
<h3><%= I18n.t('title', :scope => 'devise.otp.otp_tokens') %></h3>
Expand Down
2 changes: 0 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
get 'admin/photos' => 'admin#photos', as: 'admin_photos'
end

get "user", to: redirect("/settings")

devise_for :users, controllers: { registrations: 'registrations', session: 'sessions', passwords: 'passwords' }

devise_scope :user do
Expand Down

0 comments on commit ab205f5

Please sign in to comment.