[resolved] Username no caps allowed? Password reset upon approval? (4 posts)

  1. eadnams
    Posted 1 year ago #

    I'm finding two things which are perplexing:

    Entered usernames cant contain any capital letters? It says it must be alphanumeric if you try.

    I'd like to have it say (Must be all lowercase) beside the 'Username:' label... Or accept capitals and sanitize them upon registering...

    When a user enters a custom password (using the password custom field type). It e-mails them that password/confirmation, then when they are approved-- it sends them a new random one. For now I've removed the custom password, and that works, but then they have to change it after, which is a bit clunky.


  2. Chad Butler
    Plugin Author

    Posted 1 year ago #

    The plugin itself doesn't restrict uppercase (nor does WP by default). The plugin uses the WP function validate_username to validate the username. That function checks if what is returned is valid from sanitize_user. The plugin relies on those defaults. However, both of those functions have filter hooks so depending on whether you or some other plugin is filtering one or both of those for additional validation, that could be the issue.

    If you want to change the label, the only current filter is the entire HTML string of the generated form: wpmem_register_form. However, in the upcoming 2.9 version, individual row elements can be filtered directly as the rows are passed as an array through wpmem_register_form_rows.

    If you set up a custom password field, it MUST have the option name "password" otherwise, yes, the user approval process will override that. See "Parameters For a Password Field" in the User Guide for more info.

  3. eadnams
    Posted 1 year ago #

    Would it be that its a multi-site install that is causing the issue with caps? Theres literally no other plugins running.

  4. Chad Butler
    Plugin Author

    Posted 1 year ago #

    I guess it could be. It shouldn't any different with multisite and if you have no other plugins running, I'm not exactly certain what would be the issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.