Skip to content

Commit 6910552

Browse files
committed
[REMOVE ME] enable dev login in prod
1 parent 2e9f00b commit 6910552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/devise/sessions/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</div>
2727
</div>
2828

29-
<% if Rails.env.development? %>
29+
<% if Rails.env.development? || true %>
3030
<%= bootstrap_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
3131
<div class="form-signin text-center">
3232
<h1 class="h4 mb-4 font-weight-normal">DEV LOGIN</h1>

config/initializers/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
# changed. Defaults to true, so a user is signed in automatically after changing a password.
301301
# config.sign_in_after_change_password = true
302302

303-
if Rails.env.development?
303+
if Rails.env.development? || true
304304
# From https://insights.kyan.com/devise-authentication-strategies-a1a6b4e2b891
305305
config.warden do |manager|
306306
manager.strategies.add(:debug_login, Devise::Strategies::DebugLogin)

0 commit comments

Comments
 (0)