mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-14 17:01:42 +00:00
no usar el servidor imap del correo
This commit is contained in:
parent
0c5c1cb62e
commit
10fcc82fbf
2 changed files with 2 additions and 1 deletions
|
@ -1 +1,2 @@
|
|||
SECRET_KEY_BASE=
|
||||
IMAP_SERVER=
|
||||
|
|
|
@ -26,7 +26,7 @@ module Warden
|
|||
|
||||
def imap_connect
|
||||
# No vamos a enviar la contraseña en texto plano a ningún lado
|
||||
@imap = Net::IMAP.new(@email.host_name, ssl: true)
|
||||
@imap = Net::IMAP.new(ENV.fetch('IMAP_SERVER', 'kefir.red'), ssl: true)
|
||||
# Errores más comunes según
|
||||
# https://ruby-doc.org/stdlib-2.0.0/libdoc/net/imap/rdoc/Net/IMAP.html
|
||||
rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT, Errno::ENETUNREACH,
|
||||
|
|
Loading…
Reference in a new issue