Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
5cbe16c3
Commit
5cbe16c3
authored
Jul 31, 2019
by
Alex Buijs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set Devise's allow_unconfirmed_access_for
to 30 days
parent
2bc0f0cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app/models/user.rb
app/models/user.rb
+7
-0
config/initializers/8_devise.rb
config/initializers/8_devise.rb
+1
-1
No files found.
app/models/user.rb
View file @
5cbe16c3
...
...
@@ -1505,6 +1505,13 @@ class User < ApplicationRecord
super
end
# override from Devise::Confirmable
def
confirmation_period_valid?
return
false
if
Feature
.
disabled?
(
:soft_email_confirmation
)
super
end
private
def
default_private_profile_to_false
...
...
config/initializers/8_devise.rb
View file @
5cbe16c3
...
...
@@ -81,7 +81,7 @@ Devise.setup do |config|
# You can use this to let your user access some features of your application
# without confirming the account, but blocking it after a certain period
# (ie 2 days).
# config.allow_unconfirmed_access_for = 2
.days
config
.
allow_unconfirmed_access_for
=
30
.
days
# Defines which key will be used when confirming an account
# config.confirmation_keys = [ :email ]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment