fix: use actual API baseUrl for Turnstile instead of localhost
This commit is contained in:
parent
2dd1fe3ac2
commit
ba71610fb6
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:cloudflare_turnstile/cloudflare_turnstile.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import '../../config/api_config.dart';
|
||||
|
||||
class TurnstileWidget extends StatelessWidget {
|
||||
final String siteKey;
|
||||
|
|
@ -10,10 +11,7 @@ class TurnstileWidget extends StatelessWidget {
|
|||
super.key,
|
||||
required this.siteKey,
|
||||
required this.onToken,
|
||||
this.baseUrl = const String.fromEnvironment(
|
||||
'TURNSTILE_BASE_URL',
|
||||
defaultValue: 'http://localhost/',
|
||||
),
|
||||
this.baseUrl = ApiConfig.baseUrl,
|
||||
});
|
||||
|
||||
@override
|
||||
|
|
|
|||
Loading…
Reference in a new issue