Trim Passwords

Purpose

This WordPress plugin trims the passwords to eliminate accidentally entered ( usually during copy/paste) spaces and other characters (tabs and double quotation marks like this one: ).

Why? – Because some users out there cannot copy well. The condition is common and is well illustrated here.

Seriously, there are real people who got shaky hands due to their old age, physical exertion, excessive use of recreational substances ( = too much coffee), or just the plain excitement of seeing your blog.

They would try to copy their password and then paste it into your login form, but would capture a few extra characters around the password, and WordPress will dutifully accept these extras, process them as a part of the password, and spit out “wrong password” error, confusing the hell out of the users (they know the password is right, since they just copied it)!

And then they will blame you.

This WordPress plugin takes care of the problem.

What it does, how it works

All you have to do is install the plugin. There is nothing to configure.

Once installed, it will automatically trim spaces, tabs, and double quotation marks at the beginning and the end of user passwords.

Trimming is performed:

  • when user logs in
  • when user’s password is changed (in the admin menu).

Beware!

If you have users with existing passwords that start/end with the characters trimmed by this plugin, they will NOT be able to log in. Since WordPress stores all passwords as an MD5 hash, there is no way to run some sort of a batch job and trim the existing passwords. Granted, such passwords are rare, and the standard password reset process will take care of this little inconvenience.

Disclaimer

I wrote “Trim Passwords” for my own purposes, not for public distribution. It is provided “As Is” and can probably do horrible harm.

I do not know PHP. I have never written a full PHP program in my life. Not even “Hello, World”. This means the code may be buggy and is guaranteed to be sub-optimal.

If it works fine for you, please leave a comment here – it will encourage me and other potential users. Oh, and if you can make it better – go for it!

Good luck!

Download

Have you read the Disclaimer above??? – download Trim Passwords here: Trim Passwords plugin for WordPress, Version 0.9

Installation

  1. Download the plugin (see “Download” above).
  2. Rename trim-passwords.txt to trim-passwords.php and put it into your plugins directory (/wp-content/plugins/) or in a sub directory of the plugins directory.
  3. Activate the Plug-in.
  4. Enjoy!

Thank you

Writing all this up took time and effort. If you happen to be actually using this plug-in – I appreciate your vote of confidence and would love to hear about it!



  1. Thank you!
    Nice plugin addiction to mine, hope they’ll work (you scared me with disclaimer, but I’ll dare :-).
    Just collecting plugins around now for my new wp website, I’ll let you know if they work (if I remember to come back).

    For now, just wanted to drop a note to encourage you, yes go ahead man, nice ideas and good job!!

  2. Thanks, Tom!

    You got me encouraged. I think I will be releasing some more of my old plugins in a couple of days – just need to package them. You get the credit for the inspiration!

    🙂

  3. I have just installed your plugin on a new blog I am doing and first – thank you!

    1. We co’dvule done with that insight early on.

  4. সহডে

  5. Nice Plugin 🙂

  6. I finally decided to ask my son what makes Minecraft so fascinating.
    What my son likes best about Minecraft is that it gives him chances to utilize
    his creativity in constructive ways. homepage

  7. Of course, the perfect solution is is much less simple as popping
    a couple of rails on your truck and hauling off as time goes on. Cell phone use can distract drivers using this task, risking injury to themselves and others.
    company

  8. A better solution that individuals have come track of to fix the “Wi-Fi will no longer in range”
    error would be to update your os. If you’d like to create a homemade Wi-Fi Amplifier or Antenna, you can boost your wireless antenna signal by creating a ‘cantenna.

    Apple i – Pod Nano, the 5th generation, comes packed with an impressive set of features, among that’s
    Wi-Fi connection, camera, built-in speakers and FM radio.
    The wifi antenna within the iphone 3gs is positioned inside the cellphone.
    Wifi extender keeps losing connection Many routers have Layer
    2 Tunneling Protocol (L2TP) VPN support that can be easily build at
    home by logging to the router’s web-based configuration page.

  9. Do you really need to use Facebook for two hours daily. That’s when a
    site like VOA News Special English comes in handy.
    It will help you get used to the sound of American English.

  10. Great website you have here but I was wanting to know if you knew of any user discussion forums that cover
    the same topics discussed here? I’d really like to be a part of group where I can get opinions from other knowledgeable individuals
    that share the same interest. If you have any
    suggestions, please let me know. Cheers!

  11. There are many ways of preparing the Bhringraj plant
    for application or ingestion, but either Bhringraj powder or Bhringraj oil is favoured for hair loss treatment.
    The examinations were then recreated in humans, minus the skin cancer.
    Whatever product or service or treatment you select,
    be positive it is made from organic all-natural substances free of any pesticides, chemical compounds
    or insecticides.

  12. It can also be non food related pleasant feelings, the stronger the better.

    It is an essential part of my toolbox as a business developer in the recruitment sector to attract and retain new clients.

    if that is the case, why do so many people hold so much stock
    in their absolute accuracy and correctness.

  13. Was initially actually searching for just a traditional shower enclosures during which
    i found this page, didn’t have any idea there was such a thing as a ‘steam shower enclosure’, really, might possibly just may
    have to buy one

  14. Hey there! Do you know if they make any plugins to help with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing
    very good gains. If you know of any please share. Thanks!

Leave a comment


About

I am sorry you have to see this. Actually, I am not – if you came here, it’s you fault. When we choose our actions we also choose the consequences.

Despite my oversized ego I do NOT believe that anyone out there craves a daily dose of my insight. In fact, I am suspicious of people who think otherwise.

This blog is a tool.

I meddle with many complex computer deployments, and as I go through adding features and learning things, I also tend to forget numerous details and the reasoning behind the many choices I have made in the past. This is the place to document my adventures. And to give something back.

If you stumble upon this and find it useful – …good for you.