-
Notifications
You must be signed in to change notification settings - Fork 1
Membership | User Registration
You can either register or invite user using our built-in CodeMash authentication. This authentication uses email and password for authentication.
| Route | Request Class | Method | Description |
|---|---|---|---|
| /v1/membership/users/register | RegisterUserRequest | POST | Create user account for particular project. |
var client = new CodeMashClient(apiKey, projectId);
var membershipService = new CodeMashMembershipService(client);
membershipService.RegisterUser(new RegisterUserRequest
{
Email = "test@email.com",
Password = "password123"
});There are some settings for user registration inside your dashboard under sections Registration and Verification.
User registers as - if you don't provide roles during registration, user will be given selected role.
Verification by email needed - if this is checked, user will be unverified until activated through email. Email service needs to be enabled for this option. Also in your template you have to set a token named @Model.ValidationToken which will be replaced by verification token.
| Route | Request Class | Method | Description |
|---|---|---|---|
| /v1/membership/users/invite | InviteUserRequest | POST | Invite user to particular project. |
var client = new CodeMashClient(apiKey, projectId);
var membershipService = new CodeMashMembershipService(client);
membershipService.InviteUserAsync(new InviteUserRequest
{
Email = "test@email.com",
});There are some settings for user invitation inside your dashboard under sections Registration and Invitation.
User registers as - if you don't provide roles during registration, user will be given selected role.
Allow invite users - this must be checked for invitations to work! Email service needs to be enabled for this option. Also in your template you have to set a token named @Model.ValidationToken which will be replaced by invitation token.
-
Getting Started
1.1. Register at CodeMash
1.2. Install CodeMash
1.3. Set up API keys -
Microservices
2.1. Database
2.1.1. Connect
2.1.2. Insert
2.2. Membership
2.2.1. Connect
2.2.2. User Registration
2.2.3. Authentication
2.2.4. User Management
2.3. Files Service
2.2.1. Connect
2.4. Email Notifications
2.2.1. Connect
2.2.1. Emails
2.5. Push Notifications
2.2.1. Connect
2.2.1. Devices
2.2.1. Notifications
2.2.1. Templates
2.6. Scheduler
2.7. Code Service
2.2.1. Connect
2.2.2. Functions
2.8. Logs
2.2.1. Connect
2.2.2. Logs Management -
Other Services
3.1. Project Settings
3.2. Tokens Binding