decrypt password in list
-
Hi,
I´m trying to make a list of users on a private page. In this list i got the user name and the user password/user_pass. My problem is now, that i can only display the encrypted password. Does anyone know how to get the decrypted version displayed?
Thanks a lot!
Ps. Here´s my current code.
global $wp_roles; foreach( $wp_roles->role_names as $role => $name ) { echo '<thead> <tr> <th>Nicename</th> <th>Displayname</th> <th>Passwort</th> </tr> </thead>'; echo '<tbody>'; $this_role = "'[[:<:]]".$role."[[:>:]]'"; $query = "SELECT * FROM $wpdb->users WHERE ID = ANY (SELECT user_id FROM $wpdb->usermeta WHERE meta_value RLIKE $this_role) ORDER BY user_nicename ASC LIMIT 10000"; $users_of_this_role = $wpdb->get_results($query); if ($users_of_this_role) { foreach($users_of_this_role as $user) { $curuser = get_userdata($user->ID); echo '<tr><td>' . $curuser->user_nicename . '</td><td>' . $curuser->display_name . '</td><td>' . $curuser->user_pass . '</td></tr>'; echo '</tbody>';
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘decrypt password in list’ is closed to new replies.