parent
78538d034a
commit
ef31ea6b96
3 changed files with 4 additions and 2 deletions
|
|
@ -591,6 +591,10 @@ class User < ApplicationRecord
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def remember_me
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def clearable_fields
|
def clearable_fields
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
autocorrect: "off",
|
autocorrect: "off",
|
||||||
aria: {labelledby: "passwordConfirmationLabel"}
|
aria: {labelledby: "passwordConfirmationLabel"}
|
||||||
|
|
||||||
= hidden_field(:user, :remember_me, value: 1)
|
|
||||||
= f.submit t("devise.passwords.edit.change_password"), class: "btn btn-block btn-primary"
|
= f.submit t("devise.passwords.edit.change_password"), class: "btn btn-block btn-primary"
|
||||||
|
|
||||||
.text-center
|
.text-center
|
||||||
|
|
|
||||||
|
|
@ -40,5 +40,4 @@
|
||||||
autocorrect: "off",
|
autocorrect: "off",
|
||||||
aria: {labelledby: "passwordLabel"}
|
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"
|
= f.submit t("devise.sessions.new.sign_in"), class: "btn btn-large btn-block btn-primary"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue