born05 / craft-twofactorauthentication

Craft plugin for two-factor or two-step login using Time Based OTP.
MIT License
36 stars 26 forks source link

Use for non-CP pages? #8

Closed martyspain closed 5 years ago

martyspain commented 6 years ago

It looks like this plugin only works for CP access - is that correct? Is it possible to define your own templates for setting up the 2FA? I'd love to be able to use this for our users that login to a subscription-only portion of our Craft site, rather than just admins/CP users.

roelvanhintum commented 6 years ago

Yes, that is correct, CP only. #2 Discusses this same problem.

You could use your own templates and extend the controllers. You'll have to override the TwoFactorAuthenticationPlugin::init function with your own logic for handling front-end requests.

Front-end support will be added to the Craft 3 roadmap.

roelvanhintum commented 6 years ago

I'm hoping to get this built somewhere this week. It should involve minimal configuration to get everything up and running from a plugin users perspective. Something like a php file which holds configs.

roelvanhintum commented 6 years ago

@martyspain We now support front end out of the box. It does need some config and templates (see readme). Please let me know if something is missing.