Web Forms :: Force User Change Password When User Logs In First Time
Oct 11, 2012if user login first time in application in how i promot for change password in Asp.Net C#.
View 1 Repliesif user login first time in application in how i promot for change password in Asp.Net C#.
View 1 RepliesI want to force the user to change his password after his first login. Now, where should I put the redirection code to ChangePassword page ?
If I put it in the Page_Load of Default page, user can move to any page because he is Authenticated. If I put it in the Page_Load of Master page, the ChangePassword page uses the same master page, and it'll enter in an infinit loop of redirections.
I though of ignoring the redirection if the Page is the ChagePassword page from the Master page, and I found this answer which says:
This sounds like a bad idea to start with. The idea of the master is that it shouldn't care what page is there as this is all common code for each page.
i use formsauthentication for login. but i wanna register user logs logs table. i can access username page.user.identity.name, but how can use userid?
View 4 RepliesI have used caching in a page that shows user name[lable] and a linkbutton[login/logout].
When user logs in this text has to be changed from code but due to caching on the page none of them is changed.label I can replace with substitution control. Is there any way out to change linkbutton text now.
I need to show the user a different page when he loggs in for first time alone..
How can i do this..
I want to force user to type more than 6 characters in password field.we cannot usee range validator because password characters can be mix(i.e.Numeric or alphabates or special characters)
View 3 Replieshow to add notification facility same as facebook in our c# website, clients get the notification on their profile whenever any new feature is aaded to website..?
View 1 RepliesI'm using the ChangePassword method of membership provider to change the password and one of the requirement before calling the ChangePassword is to retrieve the current password. But I'm getting error:
padding is invalid and cannot be removed
below is my web.config:
[code]....
This is what I have in the RegisterUser.aspx and yet when the admin registers a new user, then on clickiing the register button, the site logs in as the user who was just created.
protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)
{
Roles.AddUserToRole((sender as CreateUserWizard).UserName, "Department");
}
Nowadays having activity logs of the system is needed for history and if someone who is trying to mess your site, it is easily to define who is it and when it happen. And even Facebook have it.
View 1 Replieshow to maintain the session that doesn't expire unless and until user logout.
View 1 RepliesIn create user wizard control forgot password and change password...
View 1 RepliesI'm using the ChangePassword method of membership provider to change the password and one of the requirement before calling the changepassword is to retrieve the current password. But I'm getting error:padding is invalid and cannot be removedbelow is my web.config:
< system.web> < machineKey validationKey="4FD671E39167DFB91A918018007D095E50B7D2971B01AEDE26A7233FD9CC4A470F80689997EC2C7BB515F9D82C8B4D1F3A8495193630B11E8401C96BD0A5A133" decryptionKey="ED1555E75C7B91738172E0086456C70B9CAA4C44214FC2B1907123993EA4FA53" validation="SHA1"
decryption="AES"/>....< /system.web>
I was wondering how I would go about changing a users password in ASPNETDB? There are some stored procedure I've been playing around with such as dbo.aspnet_Membership_setpassword and resetpassword but I've managed to corrupt the login password for my user as now I cannot login anymore (gives wrong username or password message in my webform login screen).Any ideas how I can successfully change my password from the ASPNETDB / stored procedure ?
View 5 RepliesI want to change password. however, i am not sure because I did not use my side as a membership at all.
However, when the user log in, i saved username as a session.
So is it possible for me to use the session.. check the database.. and change the password from there??? :)
How am I suppose to do that?
I am trying to implement a license in which we will provide a license file which will be placed on the server root directory.This license file contain encrypted strings which have ServerName, Concurrent Sessions , Timeperiod.n this i have two issue.How could i calculate time as user can change server time.How could i maintain the concurrent login sessions [because i can't catch the event hen user close the browser].I will welcome any tehcnique otehr then javascript solution.[even polling] but i can't save session information in database
View 2 RepliesI used Membership provider in my application. when i am creating new user by filling the details and adding role after the submit button it force the current user to logout and re-login using the current user which I created.
Like as a admin I created the user irshad, it admin to logout and again re-logged in with the current user irshad.
I use ASP.NET Form Authentication method in my project to keep login information as user id in user's cookie like the below code. It works well without any problem.
FormsAuthentication.SetAuthCookie(userInfo.id.ToString(), model.AutoLogin);
But the problem occurs when user use automatic login and then he change his password. In some site, I see it will force you to re-login when you change password. It's quite easy for forcing current page to log out and re-login again.
But I don't find any nice idea for forcing other auto-login cookie in other browser to login again. I have some quite ugly idea for doing that but I don't like it.
Keep latest change password date in user data.
Put it in authentication cookie like the following code.
FormsAuthentication.SetAuthCookie(userInfo.id.ToString() + '|' + userInfo.ChangePasswordDate, model.AutoLogin);
Change user's password via stored procedure in ASPNETDB. Changed to another post [URL]
View 1 RepliesI have an web application which requires login. When users finish their activities they simply logout. What I need is to clear browser history when user click logout button. This should disable BACK button in browser.
View 1 RepliesI am using the default menu bar in visual web developer 2010.I have a Staff Portal item, this has child nodes such as sales, marketing that i would like to keep hidden until the user logs in.I'm using vb.net if that comes into it
View 5 RepliesI have a web user control menu of page. Now I want HOME (which is an hyperlink text) in menu to be Bold at the time default.aspx Loaded (Load event)! How can I do that If any one can provide code! I am using VB .Net at back.
View 2 Repliesit is possible to change dynamically the session time for currently logged user. I'm communicating with a WebService which does a long-running task, and while the it sends the final response, I don't want the user to be logged out.
View 2 RepliesHow can I change the default session time in an ASP.NET website to something user defined - perhaps 1 hr?I assume the default session time is 20 mins..
View 3 RepliesI did a winforms applicaion using C#. I has 'n' number of forms.I like to track application usage time from user login to application exit.
View 1 Replies