Questions tagged [membership]
Queries regarding The fact of being a member of a group. OR The number or body of members in a group.
membership
974
questions
1259
votes
12
answers
2.9m
views
Fastest way to check if a value exists in a list
What is the fastest way to check if a value exists in a very large list (with millions of values) and what its index is?
464
votes
4
answers
2.1m
views
Check if something is (not) in a list in Python
I have a list of tuples in Python, and I have a conditional where I want to take the branch ONLY if the tuple is not in the list (if it is in the list, then I don't want to take the if branch)
if ...
158
votes
3
answers
129k
views
Check if list of objects contain an object with a certain attribute value
I want to check if my list of objects contain an object with a certain attribute value.
class Test:
def __init__(self, name):
self.name = name
# in main()
l = []
l.append(Test("t1&...
74
votes
11
answers
85k
views
How do you get the UserID of a User object in ASP.Net MVC?
I have some tables that have a uniqueidentifier UserID that relates to aspnet_Users.UserID. When the user submits some data for those tables, since the controller method has an [Authorize] I get a ...
66
votes
6
answers
111k
views
How to check if element exists in array with jq
I have an array and I need to check if elements exists in that array or to get that element from the array using
jq, fruit.json:
{
"fruit": [
"apple",
"orange",
"...
63
votes
7
answers
82k
views
What is default hash algorithm that ASP.NET membership uses?
What is default hash algorithm that ASP.NET membership uses? And how can I change it?
40
votes
8
answers
38k
views
Membership Generate Password alphanumeric only password?
How can I use Membership.GeneratePassword to return a password that ONLY contains alpha or numeric characters? The default method will only guarantee a minimum and not a maximum number of non ...
38
votes
8
answers
34k
views
SemaphoreFullException when checking user role via ASP.NET membership
I have a page that checks that a user is in a particular role before performing some task, and have had no problem with functionality and have made no obvious related changes to the code in question. ...
37
votes
1
answer
6k
views
How to leave a team on itunes connect? [closed]
I'm in multiple teams in iTunes Connect and want to leave one of these teams. I can't connect with the administrator of that team. How to do that?
P.S. This answer is for Developer site only.
35
votes
2
answers
76k
views
Check if a pandas Series has at least one item greater than a value
The following code will print True because the Series contains at least one element that is greater than 1. However, it seems a bit un-Pythonic. Is there a more Pythonic way to return True if a Series ...
33
votes
3
answers
79k
views
ASP.NET Membership: how to set the user as logged in
I am trying to get the Membership Provider to work.
So far I have:
<asp:Login ID="Login1" runat="server" OnAuthenticate="Login1_Authenticate">
</asp:Login>
calling :
protected void ...
33
votes
1
answer
2k
views
Python's in (__contains__) operator returns a bool whose value is neither True nor False
As expected, 1 is not contained by the empty tuple
>>> 1 in ()
False
but the False value returned is not equal to False
>>> 1 in () == False
False
Looking at it another way, the ...
32
votes
11
answers
198k
views
"The system cannot find the file specified"
I saw many questions on SO with this error. But none were related to forms. I just hosted my application server after testing locally. I think it worked for a few mins but I'm not sure as I may have ...
32
votes
7
answers
25k
views
Is it possible to change the username with the Membership API
I am using the default sql membership provider with ASP.NET and I would like to provide a page to change the user's username. I believe I am sure I could do this with a custom provider, but can this ...
28
votes
1
answer
10k
views
Disabling account lockout with the SqlMembershipProvider
How do I disable the account lockout feature of the SqlMembershipProvider?
The MSDN documentation for the MaxInvalidPasswordAttempts property does not specify how to disable it. If I can't find the ...
28
votes
9
answers
7k
views
Why should I use ASP.NET Membership security model?
I'm updating my website at the moment and figure that if I am to update my login/security mode, now is a good time.
I have looked through the Membership model which is included in ASP.NET but I'm ...
28
votes
3
answers
22k
views
How do I setup a Membership Provider in my existing database using ASP.NET MVC?
For some reason, the idea of setting up Membership in ASP.NET MVC seems really confusing.
Can anyone provide some clear steps to setup the requisite tables, controllers, classes, etc needed to have a ...
26
votes
6
answers
30k
views
ASP.Net Store User Data in Auth Cookie
I want to store some data like the user nickname and user ID (table primary key) in the user data section of the auth cookie. The reason I'm doing this is to retain this data when the browser is ...
20
votes
2
answers
20k
views
Can't change target membership visibility in Xcode 4.5
I currently try to exclude my In-App Purchase logic in an App of mine to make it reusable in other Apps of mine or even put it on a public git repository for others to use. For this purpose I follow ...
20
votes
6
answers
11k
views
How can you test if an ASP.NET membership password will meet configured complexity requirements?
I have a ASP.NET page which allows an administrator to change the password for a user. Since the administrator does not know the user's password, I am using the following:
MembershipUser member = ...
20
votes
2
answers
14k
views
Using one Asp.net Membership database with multiple applications Single Sign On
I have two asp.net applications on one IIS server and I would like to use the same back end asp_security database and membership provider. I've read that all I have to do is reference the same ...
19
votes
11
answers
49k
views
How can I access UserId in ASP.NET Membership without using Membership.GetUser()?
How can I access UserId in ASP.NET Membership without using Membership.GetUser(username) in ASP.NET Web Application Project?
Can UserId be included in Profile namespace next to UserName (System.Web....
19
votes
4
answers
3k
views
ASP.NET Identity
I'm currently building a new ASP.NET MVC 5 project which I want to release around September. I need to choose a membership system, but I'm currently quite confused about which direction should I take. ...
18
votes
3
answers
15k
views
Using ASP .NET Membership and Profile with MVC, how can I create a user and set it to HttpContext.Current.User?
I implemented a custom Profile object in code as described by Joel here:
How to assign Profile values?
I can't get it to work when I'm creating a new user, however. When I do this:
Membership....
17
votes
4
answers
6k
views
What restrictions should I impose on usernames [closed]
What restrictions should I impose on usernames? why?
What restrictions should I not impose on usernames? why?
P.S. db is via best-practice PDO so no risk of sql injection
Thanks
17
votes
4
answers
20k
views
ASP.NET Active Directory Membership Provider and SQL Profile Provider
I am currently designing a Membership/Profile scheme for a new project I am working on and I was hoping to get some input from others.
The project is a ASP.NET web application and due to the short ...
17
votes
6
answers
22k
views
Admin pages to manage asp.net membership provider & Role management
Are there any open source projects that provide a front end to asp.net membership provider? Something like the one visual studio exposes through it configuration, but one that can be deployed on ...
16
votes
2
answers
35k
views
using asp.net membership provider how to check if the user is registered or not?
using asp.net and c# membership provider how to check if the user is registered or not?
I want to handle this in code not by using "login status"?
16
votes
3
answers
23k
views
"Remember me" with ASP.NET MVC Authentication is not working
I have a standard ASP.NET MVC (RC Refresh) web project, with the standard ASP.NET Membership provider and the Account controller that is included in the project template.
When I check "Remember me" ...
16
votes
2
answers
10k
views
jq: select where .attribute in list
In python I can do:
>>> 5 in [2,4,6]
False
>>> 5 in [4,5,6]
True
to determine if the give value 5 exists in the list. I want to do the same concept in jq. But, there is no in. Here ...
15
votes
5
answers
53k
views
How do you programmatically end a session in asp.net when Session.Abandon() doesn't work?
Session.Abandon() doesn't seem to do anything. You would expect the Session_end event to fire when Session.Abandon() is called.
15
votes
6
answers
5k
views
What are the pros and cons using the asp.net membership?
I'm building a new website and a friend suggest to me to use the asp.net membership for the authentication process (login, registration, password recovery, etc..).
I saw that everything is stored in ...
15
votes
4
answers
27k
views
How should I implement "Forgot your password" in ASP.NET MVC?
I'm using the standard SqlMembershipProvider that comes with the ASP.NET MVC demo.
I'm interested in implementing a "Forgot your password" link on my site.
What is the correct way for this feature ...
14
votes
2
answers
6k
views
Java equivalent of Python 'in' - for set membership test?
I want to check if an item exists in an item set.
I want to do this in java:
def is_item_in_set(item, item_set):
return item in item_set
I've managed writing this:
boolean isItemInSet(String ...
14
votes
3
answers
12k
views
ASP.NET Application to authenticate to Active Directory or SQL via Windows Authentication or Forms Authentication
I am in the process of writing an application that will need multiple forms of authentication.
The application will need to support authentication to Active Directory, but be able to fail back to a ...
14
votes
3
answers
7k
views
Django - How to save m2m data via post_save signal?
(Django 1.1) I have a Project model that keeps track of its members using a m2m field. It looks like this:
class Project(models.Model):
members = models.ManyToManyField(User)
sales_rep = ...
13
votes
4
answers
39k
views
Generating scripts for database role membership in SQL Server 2005
I have a database with a lot of users in it. Those users belong to different built-in roles in the DB (eg db_ddladmin).
I want to generate a script that creates those same users with the same role ...
13
votes
1
answer
14k
views
ASP.NET Membership Password Reset
This is crazy, I have been trying for hours to get this to work.
My client wants to be able to reset password for users who have forgotten them The only parameter he has is the UserName.
He does NOT ...
13
votes
2
answers
11k
views
Sitecore Custom User Profile - where is it stored how can it be queried
I have created a custom User profile template and object in the core database in Sitecore (as per the Security API Cookbook).
I can select this programmatically (as per the Security API Cookbook) so ...
13
votes
1
answer
4k
views
MembershipUser.IsOnline is true even after logout
I'm currently creating a website using Visual Studio 2010. I'm using the default membership schema in SQL Server 2008 for user authentication. Now I'm facing the following problem.
When a user ...
12
votes
2
answers
19k
views
How to log out a user when a session times out or ends
Whats the best way to log out a user when a session ends or expires?
Thanks for any help.
12
votes
2
answers
6k
views
Is Windows Authorization Manager (AzMan) Obsolete? Is it good to use in a new ASP.NET application?
Does anyone use Windows Authorization Manager (AzMan) anymore for "greenfield" projects? If so, are there any benefits to using the technology in an ASP.NET application as a membership/role provider?
12
votes
3
answers
2k
views
How secure is the ASP.NET Membership framework?
What is the ASP.NET Membership framework's reputation as far as security goes? Are there any typical default configuration settings that are problematic? What best practices are there? Are there any ...
11
votes
4
answers
19k
views
asp.net membership - how to determine programmatically is user is in role
What is the code for determining if a user is in a role?
I have set up all the users through the ASP.NET Configuration Security tab but now want to put logic around some key areas so only people in ...
11
votes
2
answers
35k
views
How to manually change password in asp.net membership?
I would like to change password in database manually, but I am not sure what exactly I need to change and which methods to use. I would change it via code but currently I have only access to db.
10
votes
3
answers
17k
views
Implementing Custom MembershipUser
I am going round in circles and need some help in implementing a Custom MembershipUser so that I can add my own custom Properties to the MembershipUser.
I have been following the example on this site: ...
10
votes
5
answers
165k
views
How to list AD group membership for AD users using input list?
I'm fairly new PS user... Looking for some assistance with a powershell script to obtain list of security groups user is member of.
To describe what I need:
I have input list (txt file) with many ...
10
votes
1
answer
20k
views
in asp.net what sets Request.IsAuthenticated = true [duplicate]
Possible Duplicate:
asp.net membership IsApproved false but still allowing login
i am having a user register but IsApproved is false but when i check Request.IsAuthenticated it still returns true....
10
votes
2
answers
4k
views
How should I implement user membership in my ASP.NET MVC site?
I'm creating an ASP.NET MVC site and I need to implement login and membership functionality.
Is this something where I roll my own? I already have a members table in my database, should I create a ...
10
votes
4
answers
5k
views
Operator to test for collection membership in Javascript
how could I efficiently do collection membership checks in Javascript? I have a potentially large array of strings and I need to verify if a given string is a member of the array.
Initially I thought ...