oc-shopaholic / oc-buddies-plugin

👥 October CMS user system
https://octobercms.com/plugin/lovata-buddies
GNU General Public License v3.0
31 stars 15 forks source link

add form registration #7

Closed mattiak14 closed 6 years ago

mattiak14 commented 6 years ago

Hello I'm trying to use the plugin for friends I'm trying to include the registration form on a frontend page ... but I do not understand 2 things:

thanks

kharanenka commented 6 years ago

Hi! Our components do not have their own templates. You can find simple example in documentation. Simple views will not be used in real projects. You will need to write your own views. If you need a simple example, then it is in documentation. For example (ajax request):

$('form').request('Registration::onAjax');
mattiak14 commented 6 years ago

thank you sorry but I still do not have much experience on octobercms ... be patient on my project I added the acme-laravelapi plugin to create my frontend in my controller how can I call the buddies plugin functions? how to login, register? thank you

kharanenka commented 6 years ago

You can use register(), login(), logout(), getUser() methods of Lovata\Buddies\Facades\AuthHelper class