• FOR DVELOPERS:
    If I START with (say) 100 passwords linked to a page, and each one is expired after use, then there will be no passwords left for the 101st customer.

    Could you include one of these options?
    1) Send a email notification to admin when only 10% ~ 25% of passwords remain, (so they can be ‘topped up’ (I know there is an email option at present, but that is per deletion rather than when they reach a certain level. This one should be quite easy to implement)

    2) An auto password generator that also sends that list to a server script. (My side, server script sends email to customer, having pulled password from generated list: “Please use password XYZ”. It is removed from my server list, and – once used via plugin – removed from that list too. Stops password sharing. When <25%, generates more codes)

    3) A method to “top up” passwords externally. Example, my server is down to 25 passwords. It generates 100 more, and passes back to your plugin, (or PHP code) that loads those passwords into the mySQL / metatag area, (or where ever passwords are stored) Again, this should be easy to implement via a PHP script to access the appropriate area in mySQL to store the generated passwords

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andreas Münch

    (@andreasmuench)

    Hi @cristofayre ,

    thanks for your feedback, sounds interesting!

    1) that really sounds useful and can be implemented relatively easy

    2) You mean a webhook, that sends the newly generated passwords to a URL defined in the plugin settings, I guess. Also interesting, but I wonder how many users would really want and use such an advanced feature.

    3) Same here, not sure if alot of users are even able to use this

    Generally this all goes into the direction of introducing an API to manage the passwords.
    Really interesting, I´ll keep this on my list and see what is possible to do.

    Thread Starter cristofayre

    (@cristofayre)

    Sorry for not replying sooner. Been adding more coding to my own non-Wordpress apps.

    Thought I’d add what I’ve done with my own apps such that you might gleam some ideas for your own plugin, (which incidentally I have mentioned in my instruction guide for any person using my apps who also have WordPress sites)

    One app is a “Page Lock”, akin to your own plugin, but for HTML pages. On the admin, there is a button they can press to generate 250 unique 6 letter passwords, which are stored in a flat database. The customer ‘requests’ a password from the vendor. A password is removed off the database, and transferred to another database, and sent to the customer. (When the script senses there are less than 100 codes left in the database, it emails the vendor asking them to top up the database with another 250 passcodes)

    When the customer goes to the locked page, it is hidden behind a lightbox. They enter the password, which is passed to the server via AJAX. It checks it with the second database, and if found, discards it. Meanwhile, javascript places a timed ‘cookie’ in localStorage. When that expires, it deletes itself, and locks the page again. If they now try to use the passcode a second time, it is not found in database, so refuses to open.

    Just a thought, but you might be able to add a counter such that when the available passwords drop below a certain level, they get sent an email telling them to add more. It should also be quite easy to add a password generator to the admin panel. (My own password generator uses any random letter from 20, 6 times giving 64 million possible combinations! Yes, there will probably be dupes, but they will be sent to different customers … and it would be quite tricky to try to ‘brute force’ the correct passcode.

    Just a thought …

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Password counter notification’ is closed to new replies.