Blocking user access to change the password

Blocking user access to change the password. Why is it needed? Well, for example, if you register users by invites, independently and as an option to protect the site from hacking. You can change any data, except for the password, and generate a password yourself so that it is not simple. Simple passwords are easy to guess, this is one of the simplest hacks.

So let's look at the code of the future plugin:

The plugin can be downloaded from github
After activating the plugin, ordinary users will completely lose the password change fields, what we needed.

The above code works fine with the plugin Force Strong Passwords WordPress. The plugin helps protect against entering simple passwords.
Good luck in developing and developing your projects.


Купить хостинг WordPress
WordPress tutor
Online tutoring services. List of courses I teach
  • Basic web design course;
  • Site layout;
  • General course on CMS WordPress and continuation of the course on template development;
  • Website development in PHP.
Read more on the page WordPress tutor
*/

Nikolaenko Maxim

Director of web studies ProGrafika. I am developing, website design and promotion. Always glad to new blog readers and good clients.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Templates for WordPress
The best hosting in Ukraine
Stable hosting for Drupal