It's part of LoginForm in django_allauth: https://github.com/pennersr/django-allauth/blob/main/allauth/account/forms.py#L146
You can subclass LoginForm and omit that part. On Fri, 8 Mar 2024 at 22:34, ALINDA Fortunate <[email protected]> wrote: > Hello colleagues, I have the following code for my login page using > django_allauth but it outputs the *forgot password?* link. How do I edit > this? > > <!-- templates/account/login.html--> > {% extends "_base.html" %} > > {%load crispy_forms_tags%} > > {% block title %}Log In{% endblock title %} > {% block content %} > <h1>Log In</h1> > <form method="post">{% csrf_token%} > {{form | crispy}} > > <button class="btn btn-success" type="submit">Log In</button> > > </form> > {% endblock content %} > > > And the output has f*orgot** password? link.* How do I remove it or style > it? > > Below is the output. > > > [image: image.png] > > -- > ALINDA Fortunate > Graduate Of Computer Science > Gulu University > Passionate about Software Development in Python > If you can't explain it simply, you don't understand it well enough. > [email protected] <[email protected]>. > +256 774339676 / +256 702910041 > Kagadi. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAPifpCtpktOM0dRwGceOd2jP5xGRso6xwey7SvDNv%3DSMsZm0yA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAPifpCtpktOM0dRwGceOd2jP5xGRso6xwey7SvDNv%3DSMsZm0yA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFKhtoSgoD0y_fom1K_pr3w1esm3N3Cj5%2BybqDemv%2BzA7vqeXg%40mail.gmail.com.

