Need to match string WITHIN password (3 posts)

  1. doclalor
    Posted 3 years ago #

    I'd like to password protect a page and its downloads on a website; but I want to count ANY string including 'zhq' as passing the password test. That way, some of my users can sign-in using 'zhqrutland' and others 'zhqwaterbury', etc.

    I imagine this involves using regex to test whether each password string CONTAINS 'zhq'.

    But I don't know whether there's a plugin to do this, or a known elegant method. And if not, I don't know where to start hacking.

    Direction is most welcome! Thanks,


  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    So regardless of those users' usernames, if their password has 'zhq' they will be signed in?

  3. doclalor
    Posted 3 years ago #

    Yes - and if possible, I'd do away with the prompt for username on this one occasion.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic