mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-04 19:49:16 +00:00
Fix in some case, telegram will report error
This commit is contained in:
@@ -16,7 +16,7 @@ class Telegram
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (hash_equals(sysConfig('telegram_token'), $request->input('access_token'))) {
|
||||
if (sysConfig('telegram_token') && hash_equals(sysConfig('telegram_token'), $request->input('access_token'))) {
|
||||
abort(500, 'authentication failed');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user