ozcanyarimdunya / django_authen

django auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-authen 2.0.0

Authen is a simple Django login and logout page written with bootstrap-4

Quick start

  1. How to install
     pip install django-authen
  1. Add authen django_python3_ldap and to your INSTALLED_APPS in settings.py
    INSTALLED_APPS = [
        ...
        'django_python3_ldap',
        'authen',
    ]
  1. Include the authen urls in your projects urls.py
    path('authen/', include('authen.urls')),
  1. Set LOGIN_URL to authen login url in settings.py
    LOGIN_URL = "/authen/login/"
  1. Set AUTHEN configuration in settings.py
    AUTHEN = {
        "COMPANY_NAME": "Your Company Name",
        "LOGIN_TITLE": "Login w/ your id",
        "LOGOUT_TITLE": "Logged out.",
        "LOGOUT_MESSAGE": "Thanks for spending some quality time with the our site today.",
    }
  1. Finally run migration
    python manage.py migrate 
  1. Visit /authen/login/ for login and /authen/logout/ for logout page on browser.

Screenshots

login
login
logout
logout

Copyright 2018 semiworld.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

django auth

License:MIT License


Languages

Language:Python 62.2%Language:HTML 37.0%Language:CSS 0.7%