Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gy4443
chemotion_eln_server
Commits
9dbc5d8f
Commit
9dbc5d8f
authored
May 02, 2017
by
PiTrem
Browse files
devise: change email.confirm for dev
parent
f4d61b04
Changes
2
Hide whitespace changes
Inline
Side-by-side
config/environments/production.rb
View file @
9dbc5d8f
...
...
@@ -87,7 +87,7 @@ Rails.application.configure do
:password
=>
ENV
[
'SMTP_PASSWORD'
],
:authentication
=>
ENV
[
'SMTP_AUTH'
]
&&
ENV
[
'SMTP_AUTH'
].
to_sym
,
:enable_starttls_auto
=>
ENV
[
'SMTP_TLS'
]
&&
ENV
[
'SMTP_TLS'
].
match
(
/true/
),
:openssl_verify_mode
=>
ENV
[
'SMTP_SSL_MODE'
]
,
:openssl_verify_mode
=>
ENV
[
'SMTP_SSL_MODE'
]
}
end
config/initializers/devise.rb
View file @
9dbc5d8f
...
...
@@ -107,7 +107,7 @@ Devise.setup do |config|
# able to access the website for two days without confirming their account,
# access will be blocked just in the third day. Default is 0.days, meaning
# the user cannot access the website without confirming their account.
config
.
allow_unconfirmed_access_for
=
0
.
day
s
config
.
allow_unconfirmed_access_for
=
Rails
.
env
.
production?
&&
0
.
days
||
5
.
year
s
# A period that the user is allowed to confirm their account before their
# token becomes invalid. For example, if set to 3.days, the user can confirm
...
...
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