Skip to content
User management in each new app is a pain. This is the last time you should be doing it
Python HTML CSS Mako Ruby JavaScript
Find file
Latest commit e6eeec9 Apr 21, 2016 @jace jace Merge pull request #179 from hasgeek/fix-email
Fix name and url in email template.
Failed to load latest commit information.
alembic Clients can have null scope Feb 20, 2016
instance Use a separate cookie for login details. Fixes #168 Feb 20, 2016
lastuser_core Clients can have null scope Feb 20, 2016
lastuser_oauth Fix site title and url, not be hardcoded. Apr 21, 2016
lastuser_ui Switch to ua_parser for more reliable UA detection Sep 7, 2015
lastuserapp Temporarily disable org list in profile dropdown Feb 20, 2016
tests Fix test Mar 19, 2014
.gitignore Include the general static folder created by baseframe in .gitignore Mar 15, 2015
.travis.yml Fix Travis. Aug 28, 2013
CHANGES.rst Refactoring complete. Now a multi-file app. May 18, 2011
LICENSE.txt Update LICENSE.txt Jan 22, 2016
MANIFEST.in Refactoring complete. Now a multi-file app. May 18, 2011
README.rst Updated dependencies in requirements.txt and also updated database se… Mar 5, 2014
alembic.ini Alembic migrations. Apr 20, 2013
config.rb Reorganized code into multiple blueprints. Mar 20, 2013
manage.py Deprecate shell.py in favour of manage.py shell. Fixes #150 Nov 5, 2015
requirements.txt Use a separate cookie for login details. Fixes #168 Feb 20, 2016
rq.sh RQ settings. Jun 2, 2013
rqdev.py RQ config and Alembic versioning in manage.py Jun 10, 2013
rqinit.py RQ config and Alembic versioning in manage.py Jun 9, 2013
runserver.py Don't autocreate db tables. Jul 27, 2013
setup.cfg tests should cover all three lastuser blueprints Aug 20, 2013
sitecustomize.py i18n and string type consistency Jan 23, 2015
test_requirements.txt Remove classmethod-based APIs Aug 27, 2013
website.py Reorganized code into multiple blueprints. Mar 19, 2013
website.wsgi Reorganized code into multiple blueprints. Mar 19, 2013

README.rst

Lastuser

User management is a pain. There's no need to write new user management code for each new app to do basic things like logging in, managing the profile and verifying email addresses. Setup one Lastuser instance for all your apps and defer all user management to it. Use the API to integrate with your app.

This project is a work in progress.

Test deployment

Here is how you make a test deployment:

$ git clone https://github.com/hasgeek/lastuser
$ cd lastuser
$ cp instance/settings-sample.py instance/settings.py
$ open instance/settings.py # Customize this file as needed
$ pip install -r requirements.txt
$ python runserver.py

You may also want to setup the database with:

$ python manage.py db create

For development setup, you can also set the CACHE_TYPE to simple in instance/settings.py or in instance/development.py:

#: Cache type
CACHE_TYPE = 'simple'
Something went wrong with that request. Please try again.