×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    MediaWiki/Change User Password: Difference between revisions

    Content added Content deleted
    imported>SaraLee
    mNo edit summary
    m (Hoof Hearted moved page Mediawiki/Change User Password to MediaWiki/Change User Password: Correct name)
     
    (One intermediate revision by one other user not shown)
    Line 7: Line 7:
    Where obviously "somepass" is changed the password you want to set and "whatever" is changed to the user name as it is listed in the table "user".
    Where obviously "somepass" is changed the password you want to set and "whatever" is changed to the user name as it is listed in the table "user".


    from [http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_change_a_user.27s_password.3F] [http://www.premiumdissertations.com/ dissertation writing]
    from [http://meta.wikimedia.org/wiki/MediaWiki_FAQ#How_do_I_change_a_user.27s_password.3F]


    [[Category:Wiki]]
    [[Category:Wiki]]

    Latest revision as of 14:17, 29 August 2022

    How do I change a user's password?[edit]

    Assuming that $wgPasswordSalt is set to true (the default), you can use the following SQL query:

    UPDATE user SET user_password = MD5(CONCAT(user_id, '-', MD5('somepass'))) WHERE user_name = 'whatever';
    

    Where obviously "somepass" is changed the password you want to set and "whatever" is changed to the user name as it is listed in the table "user".

    from [1]

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.