diff --git a/app/Facades/Utils.php b/app/Facades/Utils.php index 122c89e3..2fe0eb31 100644 --- a/app/Facades/Utils.php +++ b/app/Facades/Utils.php @@ -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; }