Remove old shortening

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/31688/head
Joas Schilling 4 years ago
parent d683e0d3d1
commit 5f75d2e104
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
  1. 3
      core/Controller/AppPasswordController.php
  2. 4
      core/Controller/ClientFlowLoginController.php

@ -99,9 +99,6 @@ class AppPasswordController extends \OCP\AppFramework\OCSController {
}
$userAgent = $this->request->getHeader('USER_AGENT');
if (mb_strlen($userAgent) > 128) {
$userAgent = mb_substr($userAgent, 0, 120) . '…';
}
$token = $this->random->generate(72, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS);

@ -322,10 +322,6 @@ class ClientFlowLoginController extends Controller {
$clientName = $client->getName();
}
if (mb_strlen($clientName) > 128) {
$clientName = mb_substr($clientName, 0, 120) . '…';
}
$token = $this->random->generate(72, ISecureRandom::CHAR_UPPER.ISecureRandom::CHAR_LOWER.ISecureRandom::CHAR_DIGITS);
$uid = $this->userSession->getUser()->getUID();
$generatedToken = $this->tokenProvider->generateToken(

Loading…
Cancel
Save