membership

How do I get the current user in an MVC Application?

Possible Duplicate: How to get current user in Asp.Net MVC I've tried a bunch of different things, I know I've done it before when I used Webforms, but I can't seem to figure out how to do it in MVC. Membership doesn't work User gives me an IPrincipal or something User.Identity gives me the same type of variable... Anyone know...

SSO using CAS with ASP.NET membership provider backend

Hey Folks, I'm trying to utilize CAS to perform SSO on the same domain name. however i can't really understand CAS. does CAS provides user management or i have to implement it myself ? can i integrate ASP.NET membership provider into CAS as the athentication provider ? Thanks ! ...

MembershipProvider and PasswordRecovery control

Hi, I need help using the PasswordRecovery control in .net 2.0. My situation is the application has changed from storing the passwordformat in Hashed to Clear. The problem is the newly created users have a clear password stored and there are still users with hashed passwords. When I use the passwordRecovery control as below for users w...

ASP.Net Store User Data in Auth Cookie

Hi, 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 closed, without having the user relogin. Edit: Whoops! Realized I'd not explained myself well. I am not trying to reauthenticate a user b...

Should I verify an email address when a user registers on my website?

I have a membership site in beta right now... At the moment, when a user registers, it marks the account as unverified and sends them an email with a link to verify their account. The real reason for doing this is to make sure they entered their valid email address correctly. So I was contemplating on removing the verification step to ...

How do I reach the middle tier using the memship class?

I have a 3-tier ASP.NET 2.0 app. I want to use the Membership.ValidateUser method of the membership class using the credentialls added with the login control. As stupid as it seems, I can't figure out how to have the ValidateUser control call anything but the db specified in the web.config. What I need is it to call down to the middle ti...

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 working Membership provider? I know that the Demo that MVC ships with has an Accounts controller. However, should I be using this in my ...

ASP.NET SQL Profile Provider - Does the ProfileBase.Create() method hit DB?

I am working with the SQLMemebershipProvider and using Profiles. I have a custom class called UserProfile that inherits from the ProfileBase class and I use this to set custom properties like "FullName". I am wanting to loop through all the users in the database and get access to their profile properties. On each iteration I am calling P...

asp.net Membership : confirmation email blank

I'm using stock Asp.net membership with built in Login controls, etc. Problem is that the confirmation email that is send by registering has a body that is blank. It should have a link in it that the user clicks on to confirm their email and register. The email does send and is delivered ok except the blank body. Anyone know what I'm doi...

asp .net mvc authorization

What is the best way to protect certain areas of your web application in asp .net mvc. I know we can put [Authorization] attribute at each action, but this seems very tedious since you have to put it all over the place. I'm using membership provider and trying the way I used to do in postback model by setting this protection based on the...

Proper 100% IsOnline implementation for asp.net membership

Hey guys I have to design a CMS where a set of credentials can only be used once. So if a user has logged in from his computer, no-one can login with his credentials from another location until that user logs out. Now using the asp.net membership provider out the box, the IsOnline method returns a boolean that reflects the timeout wind...

What is default hash algorithm that asp.net membership uses?

Hi all. What is default hash algorithm that asp.net membership uses? And how i can change it? Thanks. ...

Where do I store additional user details using ASP.NET MVC and the SqlMembershipProvider?

So, I'm creating an ASP.NET MVC website. It has a fairly complex user sign-up page with a lot of fields. My question is, where should I persist this? The user tables created by the membership-provider tool don't contain these columns and I'm left confused about what the best practice is in terms of storing this additional information ...

Umbraco -- controlling access to media by membership

I need to set up access to media files with the following structure: A media folder is designated as belonging to a specific member group. Then, a sub-folder below that needs to be available to a subset of members from the parent's member group. Any thoughts on how this can best be accomplished? I'll render the actual file download links...

Problem when password resetting in ASP.NET

Hi every one! I am developing an app which I should design a page for users who forget passwords and send email to them the new passwords. I am using ASP.NET Membership and password format should be hashed. My problem is when sending mail has been failed, password has been changed and wow! no work can be done. what is your solution? ...

asp.net membership get login name

i see i can call Request.IsAuthenticated but how do i get the login name from asp.net membership provider once i am logged in? ...

ASP.NET Forms Authentication via Querystring

Hello StackOverflow brain trust, I currently have an ASP.NET 3.5 SP1 running on IIS 7. I have enabled forms authentication using .NET Membership and setup some folders that are restricted according to roles I have created. For instance, if an anonymous visitor tries to access the file h t t p://www.mydomain.com/restricted/foo.txt, he/sh...

Can you validate an inactive user's password in ASP.NET's membership system?

I am creating an activation form for newly-created users in ASP.NET's membership system. When the user is created I send an email with a link to an activation page. However, before the user is activated, I want to verify their user name and password, so I have them enter their credentials into text boxes. However, based on what I've r...

.NET login control inconsistent

I have the following login control using .net membership: <asp:Login ID="l_Main" runat="server" MembershipProvider="SqlProvider" DestinationPageUrl="Pages.aspx" /> Config: <authentication mode="Forms" > <forms path="/ad" loginUrl="/Admin/Login.aspx" name=".ASPXFORMSAUTH" /> </authentication> <membership default...

How to create user profiles with PHP and MySQL

I need some help on creating a user profile system. I want it to be like Facebook or Myspace where it has only the username after the address, no question marks or anything, for example, www.mysite.com/username. I have all the register, logging scripts, etc. all done, but how do I go to profiles using the URL example above, "/username"? ...