Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

php-signup-login

  • Clone with SSH
  • Clone with HTTPS
  • Cyaniventer's avatar
    Cyaniventer authored
    Forcing users to use at least one letter and number is bad practice and
    you should let users choose anything as their password as long as it is
    greater than 7 characters.
    
    Current Password Policy
    
    - should be greater than 7 characters
    81a4909e
    History
    Name Last commit Last update
    LICENSE
    README.md
    index.php
    signup-login.php

    php-signup-login

    php-signup-login is a simple php program that can save username, password and other information about user in PostgreSQL database.

    You can see the demo hosted on peertube.video, that video might not reflect what php-signup-login is today.

    I am writing this to use it for future projects.

    I have tried to fix SQL Injection, XSS, spam bots but you should check it yourself before using it for critical purpose. I'll look into CSRF later when I get time.

    Contributions are encouraged, that might help me learn something new.

    PostgreSQL database should be pre-setup and users should edit the values in signup-login.php before using it.

    columns in table - users

    columns type is NULL other
    username varchar NO unique
    password varchar NO limit: 255 (optional)
    email varchar

    you should decide character limit for other columns yourself

    pgsql and pdo_pgsql plugin should be enabled in php.ini, you can enable it by editing /etc/php/php.ini and uncommenting the following line:

    extension=pgsql
    extension=pdo_pgsql

    more information on this: wiki.archlinux.org/index.php/PHP#PostgreSQL