User managment scripts

This page describes how to setup Geo2Tag user managment scripts. Scripts can be found in https://github.com/geo2tag/core repository, in src/user_managment/ directory.

Preparations
sudo cp /etc/lighttpd/conf-available/15-fastcgi-php.conf /etc/lighttpd/conf-enabled/
 * Install geo2tag-core
 * Install php5-pgsql php5-cgi ssmtp php5-gd
 * Configure lighttpd for using php:
 * Configure ssmtp for your mail using this instruction - https://wiki.archlinux.org/index.php/SSMTP
 * Provide proper url in /opt/geo2tag/geo2tag.conf [common]/server_url parameter. This url will be used in leters with account confirmation.
 * Copy scripts from core/src/user_managment to /var/www

Scripts

 * register.php - registration form. If parameter db_name is given, than form will automaticaly send register request to the specified service. In other cases Db_name input will be shown.
 * signup_ac.php - script for the first part of registration (creating tmp user and email sending)
 * confirmation.php - second part of the registration (registration token check)
 * db_interaction.php - defines and common functions for db interaction.
 * securimage/ - file of the securimage captcha
 * check_captcha.php - captcha checking routines
 * change_password.html - allows to change password
 * reset_password.html - contains form for password reset
 * send_reset_password_letter.php - sends letter with password reset link
 * check_reset_password_token.php - second part of password reset process
 * account_managment.html - contain links for all account actions (register, change password, reset password).