<commit_before>#Permissions [![Build Status](https://travis-ci.org/xyproto/permissions.svg?branch=master)](https://travis-ci.org/xyproto/permissions) [![GoDoc](https://godoc.org/github.com/xyproto/permissions?status.svg)](http://godoc.org/github.com/xyproto/permissions)
<!--[![Build Status](https://drone.io/github.com/xyproto/permissions/status.png)](https://drone.io/github.com/xyproto/permissions/latest)    build succeeds, but github says build fails. Weirdness. -->

Middleware for Negroni, for keeping track of users and permissions.


Online API Documentation
------------------------

[godoc.org](http://godoc.org/github.com/xyproto/permissions)


Features and limitations
------------------------

* Uses secure cookies and stores user information in a Redis database. 
* Suitable for running a local Redis server and managing public pages, pages that are available for logged in users and pages that are available for logged in administrators.
* Supports registration and confirmation via generated confirmation codes.<commit_msg>Clarification<commit_after>#Permissions [![Build Status](https://travis-ci.org/xyproto/permissions.svg?branch=master)](https://travis-ci.org/xyproto/permissions) [![GoDoc](https://godoc.org/github.com/xyproto/permissions?status.svg)](http://godoc.org/github.com/xyproto/permissions)
<!--[![Build Status](https://drone.io/github.com/xyproto/permissions/status.png)](https://drone.io/github.com/xyproto/permissions/latest)    build succeeds, but github says build fails. Weirdness. -->

Middleware for Negroni, for keeping track of users and permissions.


Online API Documentation
------------------------

[godoc.org](http://godoc.org/github.com/xyproto/permissions)


Features and limitations
------------------------

* Uses secure cookies and stores user information in a Redis database. 
* Suitable for running a local Redis server, registering/confirming users and managing public/user/admin pages.
* Supports registration and confirmation via generated confirmation codes.
{'fraction_non_alphanumeric': 0.1649331352154532, 'fraction_numerical': 0.0, 'mean_word_length': 4.06265664160401, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '548139', 'n_tokens_mistral': 564, 'n_tokens_neox': 553, 'n_words': 140}