Search

You searched for the word(s): userid:141543

Matching Posts

  • Re: strange - different hasched values using same encoding..

    I created an dll of the SqlMembershipProvider.cs, SqlConnectionHelper.cs, SecUtil.cs and sr.cs. copied the internal string EncodePassword(string pass, int passwordFormat, string salt) to an public public string MyEncodePassword(string pass, int passwordFormat, string salt) Added an reference to the dll Dim Myencoder As New Mynamespace.SqlMembershipProvider pass = Myencoder.MyEncodePassword(newPassword, DirectCast (passwordFormat, Integer ), passwordSalt) And voila, I get the correct hashvalue. Could
    Posted to Security (Forum) by Stib AB on 1/17/2008
  • Re: how to extend the SqlMembershipProvider to add more properties and business logic

    aschreiber2, thanks VERY much for your detailed posts here. it helped me in other implementations of the membershipprovider... Thanks again..
    Posted to Security (Forum) by Stib AB on 1/17/2008
  • strange - different hasched values using same encoding..

    Now I have tried and have come some way, but some strange things happens. i use the Microsoft,samples.sqlmembershipproviders in my webconfig. On my special page I try to "manually change the password", cause I have the old password MD5 encoded from an old classic DB. My code for this is like this Partial Class faka Private Sub UpdateUser( ByVal newPassword As String , ByVal username As String ) Dim settings As ConnectionStringSettings = ConfigurationManager.ConnectionStrings(SEA4_Appinfo
    Posted to Security (Forum) by Stib AB on 1/17/2008
  • Re: Membership.ValidateUser where isapproved=false

    [quote user="XiaoYong Dai – MSFT"] string text2 = base .EncodePassword(password, passwordFormat, salt);[/quote] this line I cant get working from my Webapplication. i use SQLmembershipprovider and can't declare the EncodePAssword. have tried membership.Encode... and System.Web.Security.SqlMembershipProvider.Encode... without success
    Posted to Security (Forum) by Stib AB on 1/16/2008
  • Re: Login Control and Custom Membership provider with Remember Me

    Is this what you are looking for? Sub Load_login( ByVal sender As Object , ByVal e As System.EventArgs) Handles Login1.Load 'here you can read cookies and do other stuff for remembermefunctions.. End sub Sub LoggedIn_login( ByVal sender As Object , ByVal e As System.EventArgs) Handles Login1.LoggedIn 'here you can set userprops after sucessful login End sub Sub Authenticate_LoggedIn( ByVal sender As Object , ByVal e As System.EventArgs) Handles Login1.Authenticate 'here you can do things
    Posted to Security (Forum) by Stib AB on 1/16/2008
  • Re: directly alter the hashed passwordfield in database

    [quote user="XiaoYong Dai – MSFT"] Are you using the "Hashed" passwordFormat? [/quote]Yes, we are... your answer helped me that i CANT do what I want, so i have to make an "extra page" and make update in the dabase related to the generated code in your answer. However, the "string salt" is saved in the database also, correct? I also think the salt is hashed in the DB. So for get my soloution I need to do something like string oldpassword = 'benan,1'
    Posted to Security (Forum) by Stib AB on 1/16/2008
  • Re: how to create sub menu related to main menu with asp:menu

    Hi and thanxs for your answer. [quote user="ihaathi"]The sample has Menus with sub-menus for both vertical as well as horizontal menus.[/quote] The given link have only ONE <asp:menu>. I needed one <asp:menu id=mainmenu /> and a submeny <asp:menu id=submenu /> that gets populated depending on selected in the mainmenu. Like most webpages are used like. one UL list for main located in the header and another UL list for subpages located at the left.
    Posted to CSS Friendly Control Adapters (Forum) by Stib AB on 1/3/2008
  • directly alter the hashed passwordfield in database

    Hi, i have to import a current userDB that have the password stored as MD5 (using the HEX string) I found code to convert from hex to base64 like this 1 public static string HexToBase64( string inputstring) 2 { 3 StringBuilder sBuilder = new StringBuilder(); 4 for ( int i = 0; i <= inputstring.Length - 1; i++) 5 { 6 sBuilder.Append(inputstring[i]); 7 i += 1; 8 sBuilder.Append(inputstring[i]); 9 if (i < inputstring.Length - 2) 10 { 11 sBuilder.Append( "-" ); 12 } 13 } 14 15 // The
    Posted to Security (Forum) by Stib AB on 12/1/2007
    Filed under: password encrypt, password hashing, passwordFormat, membership, MD5
  • Re: Losing CSS if not logged in

    You have to give everyone access to the app_themes folder. its as simple as that. ;)
    Posted to Security (Forum) by Stib AB on 12/1/2007
  • how to create sub menu related to main menu with asp:menu

    I want my menu to act like a main menu. My main menu did work correctly by setting MaximumDynamicDisplayLevels ="0" But how do i set e sub menu that populates by the selected mainmenu?
    Posted to CSS Friendly Control Adapters (Forum) by Stib AB on 11/15/2007
Page 1 of 3 (30 items) 1 2 3 Next >