limit api key to 12 chars
This commit is contained in:
parent
c42131cbf1
commit
af09f5f977
@ -17,7 +17,7 @@ class Utils extends Facade
|
||||
*/
|
||||
public static function generateApiKey()
|
||||
{
|
||||
$key = sha1(time() . mt_rand());
|
||||
$key = substr(0, 12, sha1(time() . mt_rand()));
|
||||
return $key;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user