No announcement yet.

Allow password to match username on registration [temporarily!]

  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Allow password to match username on registration [temporarily!]

    Hi all,

    I know this will make a lot of devs and admins cringe, BUT!!!

    I really need to turn of the check for matching usernames and passwords during registration.

    ***WHY*** you might ask? Well, I have a need to allow a 3rd party script to auto register existing users from another site via an API I have created. However, some of these users have passwords that match their usernames and so VB (quite rightly) stops the process.

    I'd like to temporarily stop this check, get all the existing users into the system, then send users flagged as having matching usernames and passwords an email regarding updating their passwords (or the account may be deleted).

    I've had a look in register.php and the register template but dont see a specific check of username against password!

    Any pointers would surely make my day (as it aint goin too good just now!). ;o(

    All the best,
    Last edited by kharmer; Thu 3 Mar '11, 1:59am. Reason: Found solution

  • #2
    OK, after a lot of digging around in the VB code, I found you can do this.

    Add the following to the bottom of your 'includes/config.php' file:

    // Allow password to be same as username during registration
    // CAUTION: Dont leave this as TRUE permanently)



    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.