Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add multi user support and subscriptions #359
This pull request adds support to multi users in one account. It also introduces the notion of subscriptions.
Subscriptions are defined by a new env variable called
Basically, as it defaults to
'requires_subscription' => env('REQUIRES_SUBSCRIPTION', false),
You don't even to setup the environment variable in your
Accounts can now have multiple users. To make that happen, I had to change the relationships between User and Account objects. I've tested carefully everything but there might be some errors here and there.
To invite someone to your account, enter the email address of the person you wish to invite. This person will receive an invitation by email. If the person clicks on the invitation link, he will have to create an account on your Monica instance.
Because adding an user to your account can lead to dangerous things, here are two security measures that I've put in place:
I've also added two new statistics server wide:
Statistics are calculated every night.