<commit_before># Waterlock Local Auth

[![Build Status](http://img.shields.io/travis/davidrivera/waterlock-local-auth.svg?style=flat)](https://travis-ci.org/davidrivera/waterlock-local-auth) [![NPM version](http://img.shields.io/npm/v/waterlock-local-auth.svg?style=flat)](http://badge.fury.io/js/waterlock-local-auth) [![Dependency Status](http://img.shields.io/gemnasium/davidrivera/waterlock-local-auth.svg?style=flat)](https://gemnasium.com/davidrivera/waterlock-local-auth)

waterlock-local-auth is a module for [waterlock](https://github.com/davidrivera/waterlock)
providing a local authentication method for users either based on username or email.

Your user can simply try to login to `/login` if the user is not found one will be created using [waterlines](https://github.com/balderdashy/waterline) `findOrCreate` method<commit_msg>updating<commit_after># Waterlock Local Auth

[![Build Status](http://img.shields.io/travis/davidrivera/waterlock-local-auth.svg?style=flat)](https://travis-ci.org/davidrivera/waterlock-local-auth) [![NPM version](http://img.shields.io/npm/v/waterlock-local-auth.svg?style=flat)](http://badge.fury.io/js/waterlock-local-auth) [![Dependency Status](http://img.shields.io/gemnasium/davidrivera/waterlock-local-auth.svg?style=flat)](https://gemnasium.com/davidrivera/waterlock-local-auth)

waterlock-local-auth is a module for [waterlock](https://github.com/davidrivera/waterlock)
providing a local authentication method for users either based on username or email.

## Usage

```bash
npm install waterlock-local-auth
```

Your user can simply try to login to `/login` if the user is not found one will be created using [waterlines](https://github.com/balderdashy/waterline) `findOrCreate` method
{'fraction_non_alphanumeric': 0.14870317002881844, 'fraction_numerical': 0.0, 'mean_word_length': 5.834645669291339, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '6212574', 'n_tokens_mistral': 586, 'n_tokens_neox': 574, 'n_words': 108}