limit api key to 12 chars

This commit is contained in:
Nabeel Shahzad 2017-12-30 12:50:18 -06:00
parent c42131cbf1
commit af09f5f977

View File

@ -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;
}