Skip to main content

Django social authentication made simple.

Project description

# Lettoo email quick signup documents

------

Lettoo Email Quick Signup is an easy to setup authentication/registration mechanism for Django projects.

> * Requirements
> * Installation
> * API endpoints
> * Configuration
> * Licenses

------

[TOC]

------

## Requirements

> Python (2.7, 3.2, 3.3, 3.4, 3.5)
> Django (1.7+, 1.8, 1.9)
> Django REST framework (3.3.2+)

------

## Installation

### 1. Install package

From pypi

```
$ pip install lettoo-email-quick-signup
```

or

```
$ easy_install lettoo-email-quick-signup
```

### 2. Add email_quick_signup app to INSTALLED_APPS in your django settings.py

```
INSTALLED_APPS = (
...,
'rest_framework',
'rest_framework.authtoken',
...,
'email_quick_signup'
)
```

*This project depends on `django-rest-framework` library, so install it if you haven’t done yet. Make sure also you have installed `rest_framework` and `rest_framework.authtoken` apps*

### 3. Add email_quick_signup urls

```
urlpatterns = patterns('',
...,
url(r'^api/v1/email-quick/', include('email_quick_signup.urls'))
)
```

------

## API endpoints

> After successful registration will send a mail contains 6 digit verification code

- /api/v1/email-quick/ (POST)
- email

```
POST /api/v1/email-quick/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Cache-Control: no-cache

{"email":"test1@test.com"}
```

- /api/v1/email-quick/verify-email/ (POST)
- email
- key

```
POST /api/v1/email-quick/verify-email/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Cache-Control: no-cache

{"email": "test1@test.com", "key": "597510"}
```

------

## Configuration

- EMAIL_QUICK_SIGNUP_EMAIL_CONFIRMATION_EXPIRE_DAYS = 3

- EMAIL_QUICK_SIGNUP_EMAIL_VERIFICATION = 'optional'

- EMAIL_QUICK_SIGNUP_UNIQUE_EMAIL = True

- EMAIL_QUICK_SIGNUP_SIGNUP_FORM_CLASS = None

- EMAIL_QUICK_SIGNUP_USER_MODEL = 'auth.User'

- EMAIL_QUICK_SIGNUP_USER_MODEL_USERNAME_FIELD = 'username'

- EMAIL_QUICK_SIGNUP_USER_MODEL_EMAIL_FIELD = 'email'

------

## Licenses

```
Copyright (c) 2016 Lettoo Software Technology, and contributors.

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.
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lettoo-email-quick-signup-1.0.1.tar.gz (16.2 kB view details)

Uploaded Source

File details

Details for the file lettoo-email-quick-signup-1.0.1.tar.gz.

File metadata

File hashes

Hashes for lettoo-email-quick-signup-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cbfb5b55c16e0dc928a454075fb0fbfb991442a3d861fe34263972c993b20a0e
MD5 15e0494c97d22b876f2d5b8a872c464b
BLAKE2b-256 d9bbc142608b868b63d6641643ce6b53e78a3663077152b8245ccd417885456e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page