Skip to content

Commit

Permalink
Bump timeout to 2.hours and minimum password length
Browse files Browse the repository at this point in the history
Follow the guidelines we proposed.
  • Loading branch information
tvararu committed Nov 24, 2023
1 parent 6aeaf07 commit 17a1fd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@

# ==> Configuration for :validatable
# Range for password length.
config.password_length = 8..128
config.password_length = 10..128

# Email regex used to validate email formats. It simply asserts that
# one (and only one) @ exists in the given string. This is mainly
Expand All @@ -188,7 +188,7 @@
# ==> Configuration for :timeoutable
# The time you want to timeout the user session without activity. After this
# time the user will be asked for credentials again. Default is 30 minutes.
# config.timeout_in = 30.minutes
config.timeout_in = 2.hours

# ==> Configuration for :lockable
# Defines which strategy will be used to lock an account.
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
full_name { |n| "Test User #{n}" }
email { |n| "test-#{n}@localhost" }
teams { [Team.first || create(:team)] }
password { "rosebud1" }
password { "power overwhelming" }
end
end

0 comments on commit 17a1fd8

Please sign in to comment.