Is it possible to change the username with the Membership API

It’s true that the default SQL Membership Provider does not allow username changes. However, there’s no intrinsic reason to prevent users from changing their usernames if you have a valid argument, on your site, to allow it. None of the tables in the SQL database have the username as a key, everything is based on … Read more

How to combine using Membership API with own application related data?

The first is the simpliest approach. Add the GUID of the user as a foreignkey in the related tables (f.e. Ordered_by). I don’t see where it breaks separating concerns. If you want to keep the order-record in database, you also have to keep the user who has ordered, that makes perfectly sense. I have used … Read more

Python’s in (__contains__) operator returns a bool whose value is neither True nor False

You are running into comparison operator chaining; 1 in () == False does not mean (1 in ()) == False. Rather, comparisons are chained and the expression really means: (1 in ()) and (() == False) Because (1 in ()) is already false, the second half of the chained expression is ignored altogether (since False … Read more