Jump to content

OverrideModuleUsernameGeneration and PreModuleChangePassword


dpgthing

Recommended Posts

Hello Dev World.  I must apologize upfront!  I am very new to development and understand vaguely the lingo, so please take it easy on me.  I've read up a little on the 2 hook functions in the subject, but I'm looking for a precise answer to my inquiry.

How do I set the product username equal to that of the client's email address upon the client clicking "Complete Order"?

Also, how can I change the password complexity of the generated product password?  I would like it to be 10 characters to include only: 123456789aAbBcCdDeEfFgGhHjJkKmMnNpPqQrRsStTuUvVwWxXyYzZ  (you'll notice I left out the 0, iI, oO, lL.)

So essentially the end result of the hook function would be:
Client Profile
First Name, Last Name
E-Mail
Address
Phone Number

Product/Service
Username = "E-Mail"
Password = randomly generated 10 characters to only include letters and numbers excluding 0,iI,oO,and lL

I have attached an example of a product/service which has MANUALLY input information, and instead of me having to manually input on every order, I'd like this to be done automatically as when a product is ordered.  Thank you for your help in advance!

example.PNG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated