Missing Netlify Identity modal on password reset

Mhmmm I don’t see a reason why it still isn’t showing up.

Could you download the site via the deploy UI and go into includes/layouts/default.njk to check that the script has actually been deployed.

i’ll try to do my best

Just to be sure:
My netlify “public project”

production deploys> last Production> Deploy log> copy to clipboard ?
Is this the path to find out ?

No, you need to download the entire site.

Try two times to click the tiny arrow,
The download begin and then
i have an error message:
Error during download

:upside_down_face:

That isn’t good, but this might mean that there is a bigger issue behind this. I’m going to tag @luke and @jen, they should be able to sort this for you.

Thank you for your help.
I’ve learn a lot today.
Thanks :+1:

What i have learn today:

1# When the netlify identity widget is in the Home Page
And when i try to access to the CMS via url my project/admin
this page appear with no recovery password option:
Captura de ecrã 2021-02-24, às 18.47.08

2# In the other hand, when the netlify identity widget is in the Admin Page.
And when i try to access to the CMS via url my project/admin
this other page appear with a new modal and get me to a page with a recovery password option:
Captura de ecrã 2021-02-24, às 17.44.35

I prefer the second option!

For what you’re trying to do, the identity widget has to be on both the admin index as the root page of your site. The screenshot of #1 is a result of the admin loading without the identity widget present.

For the emails to work, you need the identity widget on the root of your site as well! (Or alternatively, set up identity email templates, but it’s a bit more work)

Ok i’ll try one more time to add the widget in the admin/ index.html
one more time. And don’t remove the one i put on the home page.

I’ll be back :slight_smile:

Nop, I try the easy way #1 in my public project version:
https://gitlab.com/ferreiraf/317tz.git
https://affectionate-euler-ff5a74.netlify.app

But i’m stuck exactly like this morning.

I checked the page, the identity widget isn’t there in your DOM

I think i find out, just one sec…

You’ve placed the identity widget in an if statement: {% if helpers.environment === "development" %} It won’t show up in production this way… https://gitlab.com/ferreiraf/317tz/-/blob/master/site/includes/layouts/default.njk#L18

Yep, i place it out of the head (in my private project version 2 min ago) and it’s runin!

between the <html lang=… and the head first tag.

But i lost my 100 Performance rating in the Lighthouse test :upside_down_face:

Yes you Right, Tom!
I now have access to the CMS, and is realy great! But as you said i lost performance…
I lost 2 points in the Lighthouse performance.

So, i 'll give a try to your solution #2, if you could help me, of course.

I haven’t used eleventy so I’m not sure if I can be of any assistance. The trick is to add the identity email templates that I posted here to eleventy, without applying a layout to them. Maybe you can specify an empty layout or something, as long as there are no html, head, or body tags in the final build files. You can then set these files in the netlify identity settings like so: Identity-generated emails | Netlify Docs.

Otherwise, 98 is still a pretty good score! If you don’t need users to sign up anymore, you can also simply remove the widget from your root page again…

Hi Tom,
Tanks for the reply.

The project is just begun. I prefer begin with the 100 rating performance because i haven’t yet included the fonts and some analytics, and those ones will impact the performance, a lot!

Like i asked yesterday, do i need to create those files on my /admin directory?

  • confirmation.html
  • recovery.html
  • invitation.html
  • email-change.html

:thinking:
Thanks for your help :slightly_smiling_face:

The directory doesn’t matter, as long as you point towards the correct file in the identity settings. You can find more information in the docs.

Hi Tom,
Ok thanks, i’ll try to do my best with the docs.
:+1: