HOWTO add a registration system to your werc website
werc is the framework powering this site, cat-v.org, and many others. It features a simple login system, but no way to register.
Here you’ll learn how to make an user register page for your site.
What is this useful for?
Comments with bridge and not much more.
The actual instructions
It’s actually pretty simple; werc supports putting .tpl rc-template files with content, so make a register.tpl file with all your top-level content, and put the contents of this file.
Now the cgi thing must have access to the etc/users and etc/groups relative to the werc root, so do chown + chmod (assumming the CGI thing runs on an user on group www):
# chown root:www [WERC PATH]/etc/groups
# chown root:www [WERC PATH]/etc/users
# chmod 770 [WERC PATH]/etc/users
# chmod 770 [WERC PATH]/etc/groups
Replace the [WERC PATH] placeholders for a path leading to well… the werc root path.
Edit user page
Coming soon!
Done!
If you have anything to say, ugh… make an account and ask on the comments.
To post a comment you need to login first.