|
UNWANTED RECURSION?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Written down this wouldn't work - just sayin
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
|
Yea! YAUT.
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Perhaps I should keep with the theme and post the same clue
|
|
|
|
|
That would be INDIRECT RECURSION!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
You can say that again
It goes without saying
|
|
|
|
|
Just a heads up, my clue tomorrow is likely to be posted around 10 AM (UK).
modified 26-May-21 8:36am.
|
|
|
|
|
musefan wrote: 10 AM. UTC? Martian time? On my sundial?
|
|
|
|
|
A fair point.
UK time. Which is currently under BST. So I think... UTC + 01:00
I guess the easiest way to put it is: About 1 hour later than people usually post
|
|
|
|
|
Do you also think windbreakers are disgusting?
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|
|
They should be deflated! And distinct!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
How much wind could a windbreaker break if a windbreaker could break wind?
If pigs could fly, just imagine how good their wings would taste!
- Harvey
|
|
|
|
|
Message Closed
modified 15-May-23 19:07pm.
|
|
|
|
|
I for one have no idea what you are talking about, but what the heck!
Didn't know your account wasn't OK ... did the special cream help?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
It always fascinates me how many people seem to think they are paying for (and can thus demand) a special service here.
|
|
|
|
|
"Don't tell me to read the documentation, just do the research for me!"
"Why won't anyone answer my questions?"
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Humans are terrible at communication. We fill in too many blanks with our own experience and are often wrong.
Just ignore those that do not help and make sure you are providing enough information for someone who can't see what you are doing to help you.
|
|
|
|
|
If anyone can explain to me the logic behind Microsoft's boilerplate scaffolded Identity management code for ASP.NET apps conflating username and email so you are (a) confused as to what's happening, and then (b) hitting trip wires after you unconflate them, then I'd love to hear it.
If you're going to provide Best Practices boilerplate, then please make them, at the very least, Pretty Good Practices.
cheers
Chris Maunder
|
|
|
|
|
Is it like the problem described here[^]?
Quote: The UserPrincipalName and Primary email address are based on different attributes from local AD. The UserPrincipalName is generated based on the User logon name in ADUC, while the Primary email address is based on the proxyAddresses. In this situation, we suggest you check the user's proxyAddresses in ADSI Edit and update it with the correct domain, then Force directory synchronization.
It seems really confusing. I'm not sure why it can't be simpler. But I don't understand all the super important stuff about Identity.
|
|
|
|
|
Active directory integration is a great way to make a simple thing complicated.
Real programmers use butterflies
|
|
|
|
|
No. They simply use "Email" to set "Username". So then everything becomes weird. When logging in you need to provide a username. But it's actually your email. But if you've overridden things to allow an actual username, then if the user enters their username it won't work, since it's after the email. Or Worse, you provide the email, but you've allowed (hacked) the code to have usernames, then when you pass in the email for login, it's actually wanting the username.
Head asplode.
I get what they are trying to do. But if honestly feels like someone put together the minimum viable code, capped off some of the bits that were too hard (or they ran out of time) and they just wrapped it up and shipped it. It's totally not out-of-the-box useable in the Real World. It's classic demoware.
cheers
Chris Maunder
|
|
|
|
|
What baffled me the most is that all the text in that boilerplate code is hard-coded.
You're either English (and only English) or you're forced to scaffold each and every page and replace it all with your own text or resx files.
I haven't hard-coded text for the past decade or so.
Also, all those Identity classes are Something<TIdentity>, but the UserManager<IdentityUser<TIdentity>> always returns a string for ID (and isn't based on an interface so you can't implement your own!?)
Those seem like rookie mistakes to me
|
|
|
|
|
|
cheers
Chris Maunder
|
|
|
|