Все вопросы: [membership]

145 вопросов

0
голосов
1ответов
21 просмотров

Trying to find getAdminStatus method

The SuperAdmin page in my web application has a method call to getAdminStatus() but I cannot find any occurences of this method when searching the entire solution. Is this method part of the .net 2.0 framework. <ItemTemplate> <asp:Label runat="server" ID="admin" Text="<%= g...

1
голосов
1ответов
1144 просмотров

How can I customize the AccountController/Register User action to add data to custom fields?

I think what I'm after doing is adding a couple of fields to aspnet_Users such as RealName and avatar for example, however, I want to insert values into these fields on user creation. I have changed the name of the action to Create as opposed to register as users are created via an Admin CP. I ...

3
голосов
1ответов
1791 просмотров

Hashed passwords and PasswordRecovery control

1) firstUser was created when membership module had requiresQuestionAndAnswer set to false, while secondUser was created when requiresQuestionAndAnswer was set to true. If we try to recover pwd via PasswordRecovery PR control and we set requiresQuestionAndAnswer to true, then PR doesn’t emai...

1
голосов
3ответов
493 просмотров

Setting Membership Store Passwords

I'm migrating an application from ColdFusion to ASP.Net MVC and have a little problem I cannot seem to get my head around. The original application stores user's passwords in a MD5 hash format with no salt in the database. I'm using the ASP.Net membership store and would like to allow for as se...

0
голосов
2ответов
55 просмотров

Flash .Net tie-in

I'd like to have placeholders in an .swf file that I can populate with information from .Net Membership information. Is this possible?

0
голосов
3ответов
3243 просмотров

PHP Links to User Profiles After Membership

I already have written a login and register script. The user can login to their account edit their details etc. The details are stored in a users table which has many different data properties related to the user. I was wondering, how do I make it so they can view their profile and it shows all ...

1
голосов
2ответов
782 просмотров

Asp.net Login Status not Working

I'm starting to use Role Management in my website, and I'm currently following this tutorial: http://www.asp.net/Learn/Security/tutorial-02-vb.aspx . I'm having a problem with the asp:LoginStatus control. It's not telling me that I am currently logged in after a successful login. This can't ...

4
голосов
3ответов
7651 просмотров

how to use Profile.GetProfile() in a library class?

I cant figure out how to use Profile.GetProfile() method in a library class. I tried using this method in a Page.aspx.cs and it worked perfectly. How can I make a method that works in the page.aspx.cs, work in the class library.

-1
голосов
3ответов
1689 просмотров

Common Membership Algorithm

People can belong to one or many groups. What is a good algorithm to output common memberships? ie, Persons A and B are in Groups C, D, and E ... etc My preferred language would be Ruby (or maybe Python), but any code or pseudocode would be greatly appreciated.

3
голосов
4ответов
8182 просмотров

Web Site Administration Tool: Unable to connect to SQL Server database

I'm using Visual Studio 2008, MS SQL server 2008 Express SQL server: zeroonea\SQL2008EXPRESS i'm create a webproject, made a dbtest.mdf in App_Data, made some tables, use aspnet_regsql to create membership tables in there, everything work fine. my connection string in web.config: <connec...

2
голосов
3ответов
1698 просмотров

ProfileProvider: retrieve list of all profiles

I'm developing an asp.net intranet website with a ActiveDirectoryMembershipProvider and a SqlProfileProvider. One of the requirements of my website is to have a "Birthdays" page, which would require me to list all profiles and retrieving the birthday information from it. I approached the proble...

-1
голосов
2ответов
717 просмотров

PHP Authentication with monthly billing

A startup client of mine is looking to launch a SaaS with multiple features/options that would increase/decrease monthly billing. The simplest solution would be best.

2
голосов
2ответов
6564 просмотров

What is wrong with my Membership ValidateUser request? (using ClientFormsAuthenticationMembershipProvider)

Are there any simple diagnostics I can run to determine why authentication is not working with the ClientFormsAuthenticationMembershipProvider provider? My problem: I have a web site (we shall call it the "Authenticator" web site) hosted on Server A that is configured to use the AspNetSqlMember...

1
голосов
3ответов
689 просмотров

Is it worth using ASP.NET's membership/role provider model if you're doing a completely homebaked implementation?

I'm working on a website that will be using Facebook Connect to authenticate users. We also have some database structure on the backend to associate users via their Facebook user id to various groups and roles. In short, the requirements for the project don't really have a lot of crossover with ...

2
голосов
1ответов
269 просмотров

ASP.NET - Membership and roles

How to get user roles from Membership provider? Suppose I have a username and his/her password and now I need to retrieve his/her assigned Roles. How can I do that?

3
голосов
1ответов
818 просмотров

Asp.Net Membership Password Resets without symbols

I'm using the asp.net Membership Provider in an application. I'm also using the "out of the box" asp:PasswordRecovery control. My client is complaining that the new passwords being issued are too complicated. e.g. }>;-(hYrS^OTfY Are there any small tweaks I can make so the new passwords onl...

5
голосов
3ответов
4004 просмотров

Why is ASP.NET accepting externally created session identifiers?

I have an ASP.NET 3.5 Web Site using the standard SQL Membership Provider. The application has to pass the IBM Rational AppScan before we can push to production. I am getting the error: Severity: High Test Type: Application Vulnerable URL: http://mytestserver/myapp/login.aspx Remediation Tasks:...

15
голосов
4ответов
25680 просмотров

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 to be implemented? Should I overwrite the password with a temporary one and email it to their reg...

2
голосов
1ответов
514 просмотров

ASP.NET Persist POST data through login redirect

I have a site (SiteA) using ASP.NET membership. One thing that it must do is allow the end user at a separate site (SiteB) to launch a new browser window to a page at SiteA with POST data attached to prefill the page. If the user is logged into SiteA, then the launch from SiteB works and the pa...

0
голосов
2ответов
1328 просмотров

Looking for MemberShip.GetAllUsers(startDate,endDate) functionality

I'm creating a user approval interface leveraging the .Net Membership class. I have a page that does a Membership.GetAllUsers(), and I spit the results to a datagrid. I filter them by MembershipUser.IsApproved. My Issue is due to slowness I'm hitting while I GetAllUsers(). Since I don't need...

0
голосов
3ответов
894 просмотров

How to migrate from custom Membership Provider to SqlMembershipProvider?

I'm currently using a very basic custom implementation of MembershipProvider in an ASP.NET web application. As my requirements for membership increase, it seems to make a lot of sense to use an existing, full featured, and well tested implementation like SqlMembershipProvider. I've figured out ho...

0
голосов
1ответов
177 просмотров

How do I use the Membership methods in the database layer?

I have an ASP.NET 2.0 3-tiered app. I want ALL of the db interaction to go through the db layer. So, when I use the Login controls, instead of them calling methods that hit the db, I want them to call down the layers until I reach the db layer. At that point I would call the Membership methods to...

0
голосов
1ответов
58 просмотров

asp.net membership - shows up as admin even though not in web tool

when i run this code, i get back true bool isAdmin = Roles.IsUserInRole(item.loginName, "Administrator"); but when i bring up the Security tab in the Asp.net Website administration tool, this user doesn't exist (or atleast i dont see this user in the list) when i go to the database, i do see...

0
голосов
3ответов
1499 просмотров

How do you get the membership profile of a user in an ASP.NET MVC view?

Possible Duplicate: How to assign Profile values? I'm using ASP.NET MVC and the Membership providers. How do I get the profile of a user in a view? any particular method to get it? The template project out of the box access the username in this way: <%= Html.Encode(Page.User.Ident...

0
голосов
1ответов
164 просмотров

asp.net - how do i determine which checkbox correlates with each row (user)

I am using asp.net mvc. I have generated a view that retrieve all unapproved users in the asp.net membership table. I have put checkboxes next to them for someone to bring up a view. The goal is that someone should be able to check certain checkboxes, hit save and that will go back to asp.net ...

11
голосов
4ответов
18746 просмотров

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 certain roles can see and access these areas.

10
голосов
1ответов
19427 просмотров

in asp.net what sets Request.IsAuthenticated = true

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. Do you know how this can happen?

2
голосов
1ответов
6765 просмотров

asp.net membership IsApproved false but still allowing login

i have change the default Account Membership provider to set IsApproved to false. public MembershipCreateStatus CreateUser(string userName, string password, string email) { MembershipCreateStatus status; _provider.CreateUser(userName, password, email, null, null, false, n...

0
голосов
1ответов
744 просмотров

asp.net-mvc - how do i create a view to show all unapproved users and allow them to be approved

i have this code in my membership service class (taken from the asp.net-mvc sample app) public MembershipUserCollection GetUnapprovedUsers() { MembershipUserCollection users = Membership.GetAllUsers(); MembershipUserCollection unapprovedUsers = new MembershipUserCollection(...

0
голосов
2ответов
374 просмотров

asp.net membership - let admin users manage the site in terms of roles

is there a way i can let the admin users of my site manage roles of other users. I see the asp.net membership tool but that seems to be just for developers of the site. i want a situation where i can give one user admin role and let him manage all of the other role details of the other users so...