Commit ea380f5b authored by Ασπασία Κατσή's avatar Ασπασία Κατσή

Merge branch 'version2' into 'develop'

fixed minor bugs in OAuth module

See merge request itminedu/e-epal!289
parents 08dcfa08 1e4d992d
......@@ -354,7 +354,7 @@ class EpalUsers extends ContentEntityBase implements EpalUsersInterface {
->setLabel(t('User id χρήστη από taxis'))
->setDescription(t('Δώσε το user id του χρήστη από taxis.'))
->setSettings(array(
'max_length' => 50,
'max_length' => 400,
'text_processing' => 0,
))
->setDefaultValue('')
......@@ -374,7 +374,7 @@ class EpalUsers extends ContentEntityBase implements EpalUsersInterface {
->setLabel(t('Tax id χρήστη'))
->setDescription(t('Δώσε το tax id / ΑΦΜ του χρήστη.'))
->setSettings(array(
'max_length' => 50,
'max_length' => 400,
'text_processing' => 0,
))
->setRequired(true)
......
......@@ -155,7 +155,7 @@ class CBController extends ControllerBase
$taxis_userid = null;
$trx = $this->connection->startTransaction();
$oauth = new OAuth($this->consumer_key, $this->consumer_secret, OAUTH_SIG_METHOD_PLAINTEXT, OAUTH_AUTH_TYPE_URI);
$oauth->disableSSLChecks();
//$oauth->disableSSLChecks();
// $oauth->enableDebug();
$oauth->setToken($authToken, $this->requestTokenSecret);
$accessToken = $oauth->getAccessToken($this->access_token_url, '', $authVerifier);
......
......@@ -106,7 +106,7 @@ class OAuthLogin extends ControllerBase
try {
$oauth = new OAuth($this->consumer_key, $this->consumer_secret, OAUTH_SIG_METHOD_PLAINTEXT, OAUTH_AUTH_TYPE_URI);
$oauth->disableSSLChecks();
//$oauth->disableSSLChecks();
$oauth->enableDebug();
$uniqid = uniqid('sid');
......
Markdown is supported
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