Django的 - 身份验证,以确认电子邮件注册 [英] Django - authentication, registration with email confirmation

查看:124
本文介绍了Django的 - 身份验证,以确认电子邮件注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找用于身份验证的API

I'm looking at the API for authentication

<一个href=\"https://docs.djangoproject.com/en/1.3/topics/auth/\">https://docs.djangoproject.com/en/1.3/topics/auth/

我似乎无法找到,将发送确认电子邮件简单的用户注册表单上的信息,因为它是在网站上以通常的方式。

I can't seem to find information on simple user registration form that would send confirmation email as it is the usual way on web sites.

我想我能做到这一点:

1)显示形式
2)用户输入信息并提交
3)保存用户为非活动状态,以确认code
4)发送与确认code链接
5)用户点击确认链接,并激活

1) Display a form 2) User enters info and submits 3) Save user as inactive, with a confirmation code 4) Send a link with confirmation code 5) User clicks a confirmation link and becomes active

这似乎并不难,但我有一种感觉,这可能已经完成,也有相当这将需要考虑一些边缘情况。

It doesn't seem that difficult but I have a feeling this might be done already, and also there are quite a few edge cases that would need to be considered.

推荐答案

它没有内置到Django的。有一个叫可重复使用的应用程序 Django的allauth ,这将满足您的需求。

It's not built into Django. There is a reusable app called django-allauth, which will fit your needs.

使用应用 Django的注册曾经被推荐,但现在已经没有维护进出日期。

An app called django-registration used to be recommended, but that is now unmaintained and out of date.

编者注的:Django的登记不是没有维护今天(2月2016)的

Editor note: django-registration is not unmaintained as of today (Feb 2016).

这篇关于Django的 - 身份验证,以确认电子邮件注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆