Thanks Mike, it is “some” use, in that it gives a bit of a hint. But it mentions code in the Startup.cs which we don’t have anymore of course. Pity it’s left out of the docs.
Thanks for that. I can see the forgotten password method, but the rememberme is still a mystery. Looking in the UmbracoSignInManager.cs I can see it handles rememberme but it doesn’t cause the asp identity application cookie to get a date, it just sits on “session”.
My login then goes to 2FA using the GoogleAuthentication package. I can also see in UmbracoSignInManager.cs that there’s some provision for rememberme wrt 2FA. It’s all rather dense and getting beyond my understanding. Just wish they’d documented this stuff so people can use it.
Would also like to know how to surface failed login messages too, but that’s probably another post.
could you copy the HandleLogin method into your own controller to use against your view, to make sure that model.RememberMe is getting passed as true… as it just seems to bubble this up to asp.net identitiy as you say and if the isPersistent passed as true we should be being remembered with a persistent cookie and not session?
Well the point is I don’t have a controller, I’m using Umbraco’s. Which is why it’s annoying they only give you half a story. If I’d done my own controller I guess I’d have used a more complete reference (hopefully).
I might have to re-engineer to use my own controller, but it’s a pain at this stage. I suppose I was hoping someone had come across this before and solved it with the Umbraco controller.
Just blanket copy the umbController… drop it in your solution… change the namespace and update your controller action to use your replacement … then debug… ?? would be my plan of attack.