Forums

How to change user password when he is logged in? (1 post)

  1. uspehovna
    Member
    Posted 4 months ago #

    I have some current user, and he has to have possibility change his password in frontend. How to do it by PHP? The main problem is when i try to change password by
    $wpdb->update( $wpdb->users, array( 'user_pass' => md5($password) ),
    array( 'user_login' => $username ) )

    it doesnot work because user is logged i think.

Reply

You must log in to post.

About this Topic