Giter VIP home page Giter VIP logo

fat-free-login's Introduction

Fat Free Login

Simple login script based on Fat Free Framework. The script offers the following possibilities:

  • registration
  • a confirmation link is sent to the user's email
  • after clicking the link the account gets activated
  • users can change password
  • lost password retrieval
  • access to pages is controlled by f3-access
  • automatic logout after configurable amount of time
  • admin section with user management
  • csrf protection (in /app/controllers/Controller.php)
  • error logs and access logs in /logs

Getting started

Prerequisites

Fat Free Framework 3.6 (https://github.com/bcosca/fatfree)

F3-access (https://github.com/xfra35/f3-access) located in /vendor/xfra35/f3-access

PHPMailer 6.0.7 (https://github.com/PHPMailer/PHPMailer) located in /vendor/phpmailer/phpmailer

Installing

  1. Install this repository on your webserver

  2. Set the /config/config.ini file:

    • DEBUG level (0, 1, 2 or 3)
    • ssl (http:// or https://)
    • auto_logout time (automatically log out user after so many seconds of inactivity)
    • database settings
    • mail smtp settings
  3. install the example database: located in /db/create_db.sql

mysql -uUSER -pPASSWD
create database fatfreelogin
source create_db.sql
  1. Active login is admin:fatfree123

  2. Set the /config/config.ini file:

  • DEBUG (0, 1, 2 or 3)
  • ssl (http:// or https://)
  • auto_logout time (automatically log out user after so many seconds of inactivity)
  • database settings
  • mail smtp settings

Contributing

This script is offered as is. Feel free to contribute to this and update as you like.

fat-free-login's People

Contributors

boflor avatar boban-dj avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.