• Resolved girl_number_5

    (@trutherone)


    Hi,

    I’m creating a WordPress theme from a basic HTML/CSS/Bootstrap theme which has great login and register pages pre-built. How can i use these Login/register/password-reminder etc pages to redirect to the respective WP pages. Preferably I’d like to do this without installing yet another plugin; thus functions.php, .htaccess etc is the way I’d like to go.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    The best way to customize the login form is described here. Registration uses the same wp-login.php code, so the process is similar for registration.

    I realize the above does not really answer your question about premade forms. IMO you’re better off using the above suggested approaches than using a premade form, unless the forms were already setup to work with WP, in which case they should just work.

    If you’re dead set on using premade forms, I suggest studying how the default form interacts with WP. Then configure your premade forms to do the same. Hint: call wp_signon() and register_new_user()

    Thread Starter girl_number_5

    (@trutherone)

    @bcworkz – ill take a look at that link thanks – ill start by looking at plugins like Branda which give you ca completely customised login page. Currently im using a plugin called ‘Paid member subscriptions’ which gives us a Login/Register page with shortcodes attached but the problem i’m having with that is the login page doesn’t recognise the 2FA form that appears after successful submittal of email/username and password. 2FA is critial on the site i’m building. Ive also encountered a few other custom login page builders that don’t recognise the need to show the 2FA inputbox.

    Moderator bcworkz

    (@bcworkz)

    The traditional text message 2FA is uncommon for WP because an additional gateway service is required to send text messages. If you’re willing to do 2FA via email instead, it’d be a lot easier to accomplish. WP already does a form of 2FA via email for registration, but not for common logins.

    There are a number of 2FA plugins. I don’t have experience with any of them. I don’t know if any do 2FA via text message.

    Brian Alexander

    (@ironprogrammer)

    Hi, @trutherone ????

    I agree that the most reliable (and safest) way to modify the look and feel of the login page is to apply customizations via CSS/JS with the login_enqueue_scripts hook, as @bcworkz shared above. 2FA plugins will likely assume use of the standard login form and flow, so an alternative page/plugin solution may require special integration (or customization) with other login-assist plugins.

    To be clear, are you able to set up the site’s login flow using the standard login page, including the 2FA requirement?

    Thread Starter girl_number_5

    (@trutherone)

    Hi (@ironprogrammer)

    Yes the login functionality (out-of-the-WP box) with or without 2FA works great using either Authenticator or Email based auth. The plugin I’m using , Paid Member Subscriptions gives us the option to use its own login page or the WP built in login page. Their login page completely ignores the 2FA form – so im left having to customise the look of the in-built Login form. But now i want to use a Login page from a html5 site i found to build my own WP theme.

    I think the suggestion to use Email auth is probably the best way to go. I personally like Auth apps, but many users i think would appreciate not having reliance on a 3rd party app in favour of using their (already supplied) email-address. Maybe i was over thinking it; easier is definitely better were the end user is concerned.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to use premade auth forms to login & register’ is closed to new replies.