As far as I know, Cockpit CMS doesn't have an API to register user via Fronend apps (Vue,React,Angular..) and send confirmation email. That's why I made this addon.
## Cockpit settings
mailer:
from : noreply@mailtrap.io
from_name : My Company
transport : smtp
host : smtp.mailtrap.io
user : username123
password : password1234
port : 465
auth : true
encryption: ssl
It's ok to create directly in config.yaml
or with this Groups Addon
Note: If you're in Cockpit CMS v2, it's not neccessary to create a group. You only have to create a role named "user".
E.g I'm using Cockpit CMS v2, so I copy only
cockpit-register-v2
folder into Cockpit'saddons
folder.
/api/register
{
"user":{
"name":"Tester",
"user":"tester",
"email":"youremail@gmail.com",
"password":"123456"
}
}
Firstly, it will register as an inactive account and will send a confirmation email, after user click on confirmation button it will activate the account and he/she will be able to login.