mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Substitute random string generator by Randomlib
This commit is contained in:
@@ -17,7 +17,7 @@ class api_oauthv2_AuthCodeTest extends \PhraseanetTestCase
|
||||
parent::setUp();
|
||||
$this->account = API_OAuth2_Account::load_with_user(self::$DI['app'], self::$DI['oauth2-app-user'], self::$DI['user']);
|
||||
$expires = time() + 100;
|
||||
$this->code = random::generatePassword(8);
|
||||
$this->code = self::$DI['app']['random.low']->generateString(8);
|
||||
$this->object = API_OAuth2_AuthCode::create(self::$DI['app'], $this->account, $this->code, $expires);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user