Skip to content
Snippets Groups Projects
Commit a02b083a authored by Laurent's avatar Laurent
Browse files

dev #72610 fix typo

parent 2d0d7eb3
Branches
Tags
2 merge requests!2542Master,!2537Dev#72610 oauth autoriser http
Pipeline #3641 passed with stage
in 50 minutes and 46 seconds
......@@ -23,7 +23,7 @@
class Api_UserController extends ZendAfi_Controller_Action {
public function loansAction() {
if (!($this->_request->isSecure() || Class_AdminVar_OAuthAcceptHTTP::isEnabled()))
return $this->_error($this->_('Protocole HTTP obligatoire'));
return $this->_error($this->_('Protocole HTTPS obligatoire'));
if (!$authorization = $this->_request->getHeader('authorization'))
return $this->_error($this->_('Autorisation non spécifiée'));
......
......@@ -185,7 +185,7 @@ class Scenario_MobileApplication_UserAccountWithoutTokenTest extends Scenario_Mo
"Content-Type" => "application/json"]);
$this->assertEquals(['error' => 'invalid_request',
'message' => 'Protocole HTTP obligatoire'],
'message' => 'Protocole HTTPS obligatoire'],
json_decode($this->_response->getBody(), true));
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment