Instead of generating a password for the user, how do I let the user make their own password?

This the code I have so far.

 unset($_REQUEST['token']);
        } elseif (empty($_REQUEST['user_login']) || empty($_REQUEST['password'])) {
            $redirect_url = (!empty($_REQUEST['return_url'])) ? $_REQUEST['return_url'] : fn_url();
        }

I’m not sure how this code relates to allowing the user to generate their own password. Surely all you need is a form input box for the password, and some code to hash it and store it in the database? Maybe you’d want some code to check for complexity and reject obvious passwords, but that could come later.

2 Likes

I still can’t figure out how to do it.

Lol I got it thanks!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.