diff --git a/app/controllers/channels_controller.rb b/app/controllers/channels_controller.rb index 85006db62..c7bde6c30 100644 --- a/app/controllers/channels_controller.rb +++ b/app/controllers/channels_controller.rb @@ -440,7 +440,7 @@ curl http://localhost/api/v1/channels.json -v -u #{login}:#{password} -H "Conten return true if !Setting.get('system_online_service') response_access_deny false - end + end def check_access(id = nil) if !id diff --git a/lib/email_helper/probe.rb b/lib/email_helper/probe.rb index 754f7e2fb..23596a191 100644 --- a/lib/email_helper/probe.rb +++ b/lib/email_helper/probe.rb @@ -354,11 +354,11 @@ returns on fail def self.invalid_fields { - 'authentication failed' => { user: true, password: true}, - 'Username and Password not accepted' => { user: true, password: true}, - 'Incorrect username' => { user: true, password: true}, + 'authentication failed' => { user: true, password: true }, + 'Username and Password not accepted' => { user: true, password: true }, + 'Incorrect username' => { user: true, password: true }, 'Lookup failed' => { user: true }, - 'Invalid credentials' => { user: true, password: true}, + 'Invalid credentials' => { user: true, password: true }, 'getaddrinfo: nodename nor servname provided, or not known' => { host: true }, 'getaddrinfo: Name or service not known' => { host: true }, 'No route to host' => { host: true },