Fixed rubocop.
This commit is contained in:
parent
5c9e3d8928
commit
e99cbf84e7
2 changed files with 5 additions and 5 deletions
|
@ -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')
|
return true if !Setting.get('system_online_service')
|
||||||
response_access_deny
|
response_access_deny
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_access(id = nil)
|
def check_access(id = nil)
|
||||||
if !id
|
if !id
|
||||||
|
|
|
@ -354,11 +354,11 @@ returns on fail
|
||||||
|
|
||||||
def self.invalid_fields
|
def self.invalid_fields
|
||||||
{
|
{
|
||||||
'authentication failed' => { user: true, password: true},
|
'authentication failed' => { user: true, password: true },
|
||||||
'Username and Password not accepted' => { user: true, password: true},
|
'Username and Password not accepted' => { user: true, password: true },
|
||||||
'Incorrect username' => { user: true, password: true},
|
'Incorrect username' => { user: true, password: true },
|
||||||
'Lookup failed' => { user: 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: nodename nor servname provided, or not known' => { host: true },
|
||||||
'getaddrinfo: Name or service not known' => { host: true },
|
'getaddrinfo: Name or service not known' => { host: true },
|
||||||
'No route to host' => { host: true },
|
'No route to host' => { host: true },
|
||||||
|
|
Loading…
Reference in a new issue