Skip to content

Commit 60517c6

Browse files
committed
enable "remember me" because some users just like it
1 parent 757ac37 commit 60517c6

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

app/assets/stylesheets/ui/dialogs.css.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,16 @@ $dialog-inner-width: $dialog-width - $dialog-padding * 2;
146146
}
147147
}
148148

149+
#remember {
150+
font-size: 12px;
151+
display: inline-block;
152+
word-spacing: 0px;
153+
vertical-align: bottom;
154+
}
155+
149156
li.action {
150157
// width: ($dialog-inner-width * 0.30);
151-
width: 30%;
158+
// width: 20px;
152159

153160
button {
154161
@include button2(lighten(desaturate(green, 15%), 35%), black);

app/views/dialogs/_join_aio.html.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
<% end %>
2424

2525
<%= f.inputs do %>
26-
<%= f.input :password, :label => false, :input_html => {:placeholder => 'Password'} %>
26+
<%= f.input :password, :label => false, :input_html => {:placeholder => 'Password'} %>
27+
<div id="remember">
28+
<%= f.check_box :remember_me, :label => :remember_me %>
29+
<span>Remember me</span>
30+
</div>
2731
<%= f.action :submit, :as => :button, :label => 'login' %>
2832
<% end %>
2933
<% end %>

config/initializers/devise.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
# ==> Configuration for :rememberable
107107
# The time the user will be remembered without asking for credentials again.
108-
# config.remember_for = 2.weeks
108+
config.remember_for = 90.days
109109

110110
# If true, extends the user's remember period when remembered via cookie.
111111
# config.extend_remember_period = false

0 commit comments

Comments
 (0)