Add more information to "remember me" button on sign-in
https://meta.codidact.com/posts/287702
When you sign in you can check a box labelled "remember me". This can mean a few different things across the web -- have the browser remember your username, stay signed in (for a period of time or "forever"), maybe other things. Can we adjust the text to be more specific about what we mean?
I believe (based on my experience) that we mean "stay signed in (unless you lose your cookies)". I've seen "stay signed in on this device" elsewhere.
Changing the text next to that box is presumably easy, but I do want to confirm what it does first.
Huh, I can't find this text, though I did find a reference to Devise::Controllers::Rememberable so it's possible it's baked into some library we're using?
Text should be in app/views/devise/sessions, IIRC
Text should be in app/views/devise/sessions, IIRC
It is, but it's indirect:
<% if devise_mapping.rememberable? %>
<div class="form-group">
<%= f.label :remember_me, class: "form-element" %>
<%= f.check_box :remember_me, class: "form-radio-element" %>
</div>
<% end %>
I haven't found where the string is set for :remember_me.