Unverified Commit ef31ea6b authored by Benjamin Neff's avatar Benjamin Neff
Browse files

Enable remember me for all forms

fixes #8023
parent 78538d03
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -591,6 +591,10 @@ class User < ApplicationRecord
    end
  end

  def remember_me
    true
  end

  private

  def clearable_fields
+0 −1
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@
                           autocorrect:    "off",
                           aria:           {labelledby: "passwordConfirmationLabel"}

      = hidden_field(:user, :remember_me, value: 1)
      = f.submit t("devise.passwords.edit.change_password"), class: "btn btn-block btn-primary"

    .text-center
+0 −1
Original line number Diff line number Diff line
@@ -40,5 +40,4 @@
                       autocorrect: "off",
                       aria: {labelledby: "passwordLabel"}

  = f.hidden_field :remember_me, value: 1
  = f.submit t("devise.sessions.new.sign_in"), class: "btn btn-large btn-block btn-primary"