Value of type Session has no member set

Good Morning,

sorry for bothering you, but I can’t find the error. I already wrote the code for resetting the password in my “WebsiteController.swift” file, and I receive this error:

resetPasswordHandler

I already import SendGrid and I can’t find the mistake.
Hope you could help.
Thank you very much and have a nice day.

Those helper functions are in Imperial. You can see the relevant code here so if you’re not using Imperial, you’ll just need to either copy the implementation of those functions or the helpers themselves. Hope that helps!

Ok perfect, now I understand.
Thank you very much!

There is mistake in the book (Server Side Swift with Vapor)! You need add “Import imperial” in the WebsiteController.swift!

1 Like

Thank you very much!

@ievgeniy Thank you for the heads up - much appreciated!