Add an API to reset the password
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:html';
|
||||
|
||||
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:grpc/grpc_web.dart';
|
||||
import 'package:softplayer_web/api/grpc/accounts.dart';
|
||||
@@ -9,10 +10,8 @@ import 'package:softplayer_web/components/environments.dart';
|
||||
import 'package:softplayer_web/components/login_form.dart';
|
||||
|
||||
void main() async {
|
||||
const String backendURL = String.fromEnvironment(
|
||||
'SOFTPLAYER_BACKEND_URL',
|
||||
defaultValue: 'https://softplayer-backend.badhouseplants.net:8080',
|
||||
);
|
||||
await dotenv.load(fileName: ".env");
|
||||
String backendURL = dotenv.env['SOFTPLAYER_BACKEND_URL']!;
|
||||
GrpcWebClientChannel grpcChannel =
|
||||
GrpcWebClientChannel.xhr(Uri.parse(backendURL));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user