mailinabox_registration_page/README.md

26 lines
870 B
Markdown
Raw Normal View History

2022-05-25 16:58:15 +05:30
# Main-In-A-Box registration page
2022-05-25 16:56:59 +05:30
source code of https://salvusmail.com/register.html page.
2022-05-25 16:58:15 +05:30
2022-05-25 16:59:55 +05:30
Just a simple registraiton page with a hcaptcha, using Mail-In-A-Box's in-build api for creating email.
2022-05-25 17:17:23 +05:30
## Installation:
1. Clone the files into your website directory (Your website directory is `/home/user-data/www/default`)
2022-05-25 17:26:34 +05:30
2. Edit line numbers 195, 200 (pattern), 214 (data-sitekey) in register.html
3. Edit line 40 (api) in action_page.php
4. Create a file .env in `/home/user-data/www` and save your admin accout creds and captcha secret key in it, make sure format is like this:
2022-05-25 17:17:23 +05:30
```
PWDD="PASSWORD_HERE"
EML="EMAILHERE@domain.com"
SEC="hCaptcha secret key here"
```
2022-05-25 17:26:34 +05:30
5. Make sure you have composer installed, run `composer install` in website directory.
2022-05-25 17:21:43 +05:30
2022-05-25 17:26:34 +05:30
Done, that's it.
2022-05-25 17:21:43 +05:30
2022-05-25 17:26:34 +05:30
If its not working, make sure you enabled php.
Feel free to submit issues and pull requests.