This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I'm trying to integrate an external form for registering users via the user plugin. Basically, I have a page called city where users can sign up for a location based newsletter. On the city page there is a form where they can signup using just their e-mail address. Below is an example of the form:
<form
data-request="onRegister">
<div class="form-group">
<label for="registerEmail">Email</label>
<input name="email" type="email" class="form-control" id="registerEmail" placeholder="Enter your email">
</div>
<button type="submit" class="btn btn-default">Register</button>
</form>
The two problems that I am having are: 1) I currently have "data-request="onRegister"", however the city page is generated inside of a separate plugin. How can I reference the onRegister function in the user plugin? 2) My desired functionality is that a password is automatically generated and then an activation e-mail is sent to the user where they can login and generate their own password. How can I do this?
Last updated
1-1 of 1