|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
3 password in asp.net Login controlI have a special Login page that wants users to enter 3 passwords rather than a single password. But can't do it with Login control. I tried following scenarios: 1. Put an Login in the page and set its Visible = False instead put my own username and 3 password on the form. Then I checked 2nd and 3rd password seperately and passed username and password to Login control via its Username and Password properties but couldn't because they was reaonly! Also there was not any such LOGIN or AUTHENTICATE method. 2. Programming on LoggedIn and other Login events, but couldn't find any method or way to undo the login process based on my internally password checking, that means I want to logout that user automaticlly if 2nd and 3rd password is incorrect. 3. Searched for any non-control (I mean just a class) to do login process just in my c# code, but I didn't find anything. So PLEASE help me! I have preached ASP.NET Membership between my colleages very much. Don't allow a defeat! With Thanks: Afshar Mohebbi So how do you authenticate (or plan to authenticate) three separate strings?
Two of them should be or have to be the user name and password Membership requires right? And the third would require using your own code and authentication schema. So authenticate your piece first and after authenticating on that piece let Membership take over with the other two pieces. DOn't forget to use SQL Manager to check out the stored procedures Membership uses for authentication. You can reuse them. <%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://clintongallagher.metromilwaukee.com/ MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W Show quote "Afshar" <afshar.mohe***@gmail.com> wrote in message news:1157447201.819607.97700@b28g2000cwb.googlegroups.com... > Hi everybody there, > I have a special Login page that wants users to enter 3 passwords > rather than a single password. But can't do it with Login control. I > tried following scenarios: > > 1. Put an Login in the page and set its Visible = False instead put my > own username and 3 password on the form. Then I checked 2nd and 3rd > password seperately and passed username and password to Login control > via its Username and Password properties but couldn't because they was > reaonly! Also there was not any such LOGIN or AUTHENTICATE method. > > 2. Programming on LoggedIn and other Login events, but couldn't find > any method or way to undo the login process based on my internally > password checking, that means I want to logout that user automaticlly > if 2nd and 3rd password is incorrect. > > 3. Searched for any non-control (I mean just a class) to do login > process just in my c# code, but I didn't find anything. > > So PLEASE help me! > I have preached ASP.NET Membership between my colleages very much. > Don't allow a defeat! > > With Thanks: > Afshar Mohebbi > Hi clintonG,
But I want a single login BUTTON in a single page, so the user enters his data and clicks a button just one time in order to backward compatiblety. Thanks in Advance: Afshar clintonG wrote: Show quote > So how do you authenticate (or plan to authenticate) three separate strings? > Two of them should be or have to be the user name and password Membership > requires right? And the third would require using your own code and > authentication schema. So authenticate your piece first and after > authenticating on that piece let Membership take over with the other two > pieces. DOn't forget to use SQL Manager to check out the stored procedures > Membership uses for authentication. You can reuse them. > > <%= Clinton Gallagher > NET csgallagher AT metromilwaukee.com > URL http://clintongallagher.metromilwaukee.com/ > MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W > > "Afshar" <afshar.mohe***@gmail.com> wrote in message > news:1157447201.819607.97700@b28g2000cwb.googlegroups.com... > > Hi everybody there, > > I have a special Login page that wants users to enter 3 passwords > > rather than a single password. But can't do it with Login control. I > > tried following scenarios: > > > > 1. Put an Login in the page and set its Visible = False instead put my > > own username and 3 password on the form. Then I checked 2nd and 3rd > > password seperately and passed username and password to Login control > > via its Username and Password properties but couldn't because they was > > reaonly! Also there was not any such LOGIN or AUTHENTICATE method. > > > > 2. Programming on LoggedIn and other Login events, but couldn't find > > any method or way to undo the login process based on my internally > > password checking, that means I want to logout that user automaticlly > > if 2nd and 3rd password is incorrect. > > > > 3. Searched for any non-control (I mean just a class) to do login > > process just in my c# code, but I didn't find anything. > > > > So PLEASE help me! > > I have preached ASP.NET Membership between my colleages very much. > > Don't allow a defeat! > > > > With Thanks: > > Afshar Mohebbi > > Yea, so?
Everything you need to do can be done in the Button's click event handler. You might have to write and invoke a class or two with some unique methods but sometimes that's what we have to do. Especially when somebody comes up with some goofy authentication scheme. I know this wasn't your idea right? ;-) So what's the real problem here? I mean you didn't answer some questions I had so I won't be much help without explicit facts. After all, maybe my first idea wasn't such a good idea after all! <%= Clinton Gallagher "Afshar" <afshar.mohe***@gmail.com> wrote in message But I want a single login BUTTON in a single page, so the user entersnews:1157545671.951795.320350@i3g2000cwc.googlegroups.com... Hi clintonG, his data and clicks a button just one time in order to backward compatiblety. Thanks in Advance: Afshar clintonG wrote: Show quote > So how do you authenticate (or plan to authenticate) three separate > strings? > Two of them should be or have to be the user name and password Membership > requires right? And the third would require using your own code and > authentication schema. So authenticate your piece first and after > authenticating on that piece let Membership take over with the other two > pieces. DOn't forget to use SQL Manager to check out the stored procedures > Membership uses for authentication. You can reuse them. > > <%= Clinton Gallagher > NET csgallagher AT metromilwaukee.com > URL http://clintongallagher.metromilwaukee.com/ > MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W > > "Afshar" <afshar.mohe***@gmail.com> wrote in message > news:1157447201.819607.97700@b28g2000cwb.googlegroups.com... > > Hi everybody there, > > I have a special Login page that wants users to enter 3 passwords > > rather than a single password. But can't do it with Login control. I > > tried following scenarios: > > > > 1. Put an Login in the page and set its Visible = False instead put my > > own username and 3 password on the form. Then I checked 2nd and 3rd > > password seperately and passed username and password to Login control > > via its Username and Password properties but couldn't because they was > > reaonly! Also there was not any such LOGIN or AUTHENTICATE method. > > > > 2. Programming on LoggedIn and other Login events, but couldn't find > > any method or way to undo the login process based on my internally > > password checking, that means I want to logout that user automaticlly > > if 2nd and 3rd password is incorrect. > > > > 3. Searched for any non-control (I mean just a class) to do login > > process just in my c# code, but I didn't find anything. > > > > So PLEASE help me! > > I have preached ASP.NET Membership between my colleages very much. > > Don't allow a defeat! > > > > With Thanks: > > Afshar Mohebbi > > Dear Clinton,
Please let go back to your first guidance: :::And the third would require using your own code and I can handle my third string authentication in my own code, but how let:::authentication schema. So authenticate your piece first and after :::authenticating on that piece let Membership take over with the other two :::pieces. Membership take over the other two pieces? I'm just searching for a method or function call to do it. Is there any specific method or class for it? I couldn't find any method for this in Login Control. Any help would be appreciated Afshar Mohebbi clintonG wrote: Show quote > Yea, so? > > Everything you need to do can be done in the Button's click event handler. > You might have to write and invoke a class or two with some unique methods > but sometimes that's what we have to do. Especially when somebody comes up > with some goofy authentication scheme. I know this wasn't your idea right? > ;-) > > So what's the real problem here? I mean you didn't answer some questions I > had so I won't be much help without explicit facts. After all, maybe my > first idea wasn't such a good idea after all! > > <%= Clinton Gallagher > > > > "Afshar" <afshar.mohe***@gmail.com> wrote in message > news:1157545671.951795.320350@i3g2000cwc.googlegroups.com... > Hi clintonG, > > But I want a single login BUTTON in a single page, so the user enters > his data and clicks a button just one time in order to backward > compatiblety. > > > Thanks in Advance: > Afshar > > > > clintonG wrote: > > So how do you authenticate (or plan to authenticate) three separate > > strings? > > Two of them should be or have to be the user name and password Membership > > requires right? And the third would require using your own code and > > authentication schema. So authenticate your piece first and after > > authenticating on that piece let Membership take over with the other two > > pieces. DOn't forget to use SQL Manager to check out the stored procedures > > Membership uses for authentication. You can reuse them. > > > > <%= Clinton Gallagher > > NET csgallagher AT metromilwaukee.com > > URL http://clintongallagher.metromilwaukee.com/ > > MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W > > > > "Afshar" <afshar.mohe***@gmail.com> wrote in message > > news:1157447201.819607.97700@b28g2000cwb.googlegroups.com... > > > Hi everybody there, > > > I have a special Login page that wants users to enter 3 passwords > > > rather than a single password. But can't do it with Login control. I > > > tried following scenarios: > > > > > > 1. Put an Login in the page and set its Visible = False instead put my > > > own username and 3 password on the form. Then I checked 2nd and 3rd > > > password seperately and passed username and password to Login control > > > via its Username and Password properties but couldn't because they was > > > reaonly! Also there was not any such LOGIN or AUTHENTICATE method. > > > > > > 2. Programming on LoggedIn and other Login events, but couldn't find > > > any method or way to undo the login process based on my internally > > > password checking, that means I want to logout that user automaticlly > > > if 2nd and 3rd password is incorrect. > > > > > > 3. Searched for any non-control (I mean just a class) to do login > > > process just in my c# code, but I didn't find anything. > > > > > > So PLEASE help me! > > > I have preached ASP.NET Membership between my colleages very much. > > > Don't allow a defeat! > > > > > > With Thanks: > > > Afshar Mohebbi > > > Dear Clinton,
Please let go back to your first guidance: :::And the third would require using your own code and I can handle my third string authentication in my own code, but how let:::authentication schema. So authenticate your piece first and after :::authenticating on that piece let Membership take over with the other two :::pieces. Membership take over the other two pieces? I'm just searching for a method or function call to do it. Is there any specific method or class for it? I couldn't find any method for this in Login Control. Any help would be appreciated Afshar Mohebbi clintonG wrote: Show quote > Yea, so? > > Everything you need to do can be done in the Button's click event handler. > You might have to write and invoke a class or two with some unique methods > but sometimes that's what we have to do. Especially when somebody comes up > with some goofy authentication scheme. I know this wasn't your idea right? > ;-) > > So what's the real problem here? I mean you didn't answer some questions I > had so I won't be much help without explicit facts. After all, maybe my > first idea wasn't such a good idea after all! > > <%= Clinton Gallagher > > > > "Afshar" <afshar.mohe***@gmail.com> wrote in message > news:1157545671.951795.320350@i3g2000cwc.googlegroups.com... > Hi clintonG, > > But I want a single login BUTTON in a single page, so the user enters > his data and clicks a button just one time in order to backward > compatiblety. > > > Thanks in Advance: > Afshar > > > > clintonG wrote: > > So how do you authenticate (or plan to authenticate) three separate > > strings? > > Two of them should be or have to be the user name and password Membership > > requires right? And the third would require using your own code and > > authentication schema. So authenticate your piece first and after > > authenticating on that piece let Membership take over with the other two > > pieces. DOn't forget to use SQL Manager to check out the stored procedures > > Membership uses for authentication. You can reuse them. > > > > <%= Clinton Gallagher > > NET csgallagher AT metromilwaukee.com > > URL http://clintongallagher.metromilwaukee.com/ > > MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W > > > > "Afshar" <afshar.mohe***@gmail.com> wrote in message > > news:1157447201.819607.97700@b28g2000cwb.googlegroups.com... > > > Hi everybody there, > > > I have a special Login page that wants users to enter 3 passwords > > > rather than a single password. But can't do it with Login control. I > > > tried following scenarios: > > > > > > 1. Put an Login in the page and set its Visible = False instead put my > > > own username and 3 password on the form. Then I checked 2nd and 3rd > > > password seperately and passed username and password to Login control > > > via its Username and Password properties but couldn't because they was > > > reaonly! Also there was not any such LOGIN or AUTHENTICATE method. > > > > > > 2. Programming on LoggedIn and other Login events, but couldn't find > > > any method or way to undo the login process based on my internally > > > password checking, that means I want to logout that user automaticlly > > > if 2nd and 3rd password is incorrect. > > > > > > 3. Searched for any non-control (I mean just a class) to do login > > > process just in my c# code, but I didn't find anything. > > > > > > So PLEASE help me! > > > I have preached ASP.NET Membership between my colleages very much. > > > Don't allow a defeat! > > > > > > With Thanks: > > > Afshar Mohebbi > > > |
|||||||||||||||||||||||