Class: EmailSettingsExceptionHandler::GmailProvider
Instance Method Summary
collapse
#initialize, #message
Instance Method Details
#net_imap_no_response_error ⇒ Object
113
114
115
116
117
118
119
120
121
|
# File 'app/services/email_settings_exception_handler.rb', line 113
def net_imap_no_response_error
if @exception.message.match(/Application-specific password required/)
I18n.t("email_settings.authentication_error_gmail_app_password")
else
super
end
end
|
#net_smtp_authentication_error ⇒ Object
103
104
105
106
107
108
109
110
111
|
# File 'app/services/email_settings_exception_handler.rb', line 103
def net_smtp_authentication_error
if @exception.message.match(/Application-specific password required/)
I18n.t("email_settings.authentication_error_gmail_app_password")
else
super
end
end
|