android – %EMAIL% string doesn’ t work in firebase. Methods to repair this?

[ad_1]

I’ve made an forgot password web page and if i click on on the button to ship an password forgot e-mail i get this message: W/System (19102): Ignoring header X-Firebase-Locale as a result of its worth was null. I’ve enabled the verification technique in firebase and the login/register web page work but additionally do not ship emails. I’ve accomplished some digging and that i noticed in firebase that %EMAIL% does not work. so firebase does not know the place to ship the e-mail. How am i able to repair this?

That is the code from the forget_password web page

import 'bundle:firebase_auth/firebase_auth.dart';
import 'bundle:flutter/materials.dart';
import 'bundle:hetmaantje/reusable_widget.dart';
import 'bundle:hetmaantje/utils1/colours.dart';

class ResetPassword extends StatefulWidget {
  const ResetPassword({Key? key}) : tremendous(key: key);

  @override
  _ResetPasswordState createState() => _ResetPasswordState();
}

class _ResetPasswordState extends State<ResetPassword> {
  TextEditingController _emailTextController = TextEditingController();
  @override
  Widget construct(BuildContext context) {
    return Scaffold(
      extendBodyBehindAppBar: true,
      appBar: AppBar(
        backgroundColor: Colours.clear,
        elevation: 0,
        title: const Textual content(
          "Wachtwoord resetten",
          model: TextStyle(fontSize: 24, fontWeight: FontWeight.daring),
        ),
      ),
      physique: Container(
          width: MediaQuery.of(context).dimension.width,
          top: MediaQuery.of(context).dimension.top,
          ornament: BoxDecoration(
              gradient: LinearGradient(colours: [
                hexStringToColor("FFBEC8"),
                hexStringToColor("fe98a8"),
                hexStringToColor("FC98A7"),
                hexStringToColor("#FF8799")
              ], start: Alignment.topCenter, finish: Alignment.bottomCenter)),
          baby: SingleChildScrollView(
              baby: Padding(
                padding: EdgeInsets.fromLTRB(20, 120, 20, 0),
                baby: Column(
                  youngsters: <Widget>[
                    const SizedBox(
                      height: 20,
                    ),
                    reusableTextField("Vul je email in", Icons.person_outline, false,
                        _emailTextController),
                    const SizedBox(
                      height: 20,
                    ),
                    firebaseUIButton(context, "Reset je wachtwoord", () {
                      FirebaseAuth.instance
                          .sendPasswordResetEmail(email: _emailTextController.text)
                          .then((value) => Navigator.of(context).pop());
                    })
                  ],
                ),
              ))),
    );
  }
}

[ad_2]

Leave a Reply