Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
forgotpwd
Commits
001b9552f996
Commit
c71d1015
authored
Feb 08, 2011
by
Sylvain Thénault
Browse files
update pkginfo
parent
5dd2345497d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
README
0 → 100644
View file @
001b9552
Summary
-------
The `forgotpwd` cube provides an easy way to generate a new password for an
user, eg the common"I forgot my password" functionnality.
It is non-obstrusive and easy to plug.
Usage
-----
This cube creates a new entity called `Fpasswd`. This is an internal
entity: managers and users can't read/delete or modify this kink of
entity.
The workflow of password recovery is defined below :
1. ask for a new password, the user must have a valid primary email
associated to his account.
2. An email has been sent. This email contains a generated url associated to an
user. This link is valid during a short period. This time limit can be
configured in the all-in-one.conf file:
.. sourcecode:: ini
[FORGOTPWD]
revocation-limit=30 # minutes
3. If the link is valid, the user can change his password in a new form.
There is an automatic task that delete periodically all old Fpasswd which are
stored in the database. This task is started at the launching of the
application.
__pkginfo__.py
View file @
001b9552
...
...
@@ -8,56 +8,21 @@ numversion = (0, 3, 1)
version
=
'.'
.
join
(
str
(
num
)
for
num
in
numversion
)
license
=
'LGPL'
copyright
=
'''Copyright (c) 2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
http://www.logilab.fr -- mailto:contact@logilab.fr'''
author
=
'LOGILAB S.A. (Paris, FRANCE)'
author_email
=
'contact@logilab.fr'
description
=
'password recovery component for the CubicWeb framework'
short_desc
=
description
long_desc
=
"""
\
Summary
-------
The `forgotpwd` cube provides an easy way to generate a new password for an
user, eg the common"I forgot my password" functionnality.
It is non-obstrusive and easy to plug.
Usage
-----
This cube creates a new entity called `Fpasswd`. This is an internal
entity: managers and users can't read/delete or modify this kink of
entity.
The workflow of password recovery is defined below :
1. ask for a new password, the user must have a valid primary email
associated to his account.
2. An email has been sent. This email contains a generated url associated to an
user. This link is valid during a short period. This time limit can be
configured in the all-in-one.conf file:
.. sourcecode:: ini
[FORGOTPWD]
revocation-limit=30 # minutes
3. If the link is valid, the user can change his password in a new form.
web
=
'http://www.cubicweb.org/project/%s'
%
distname
There is an automatic task that delete periodically all old Fpasswd which are
stored in the database. This task is started at the launching of the
application.
"""
__depends__
=
{
'cubicweb'
:
'>= 3.9.0'
,
'python-crypto'
:
None
,
'PIL'
:
None
,
}
web
=
'http://www.cubicweb.org/project/%s'
%
distname
# packaging ###
from
os
import
listdir
as
_listdir
from
os.path
import
join
,
isdir
,
exists
from
os.path
import
join
,
isdir
from
glob
import
glob
THIS_CUBE_DIR
=
join
(
'share'
,
'cubicweb'
,
'cubes'
,
modname
)
...
...
@@ -73,16 +38,8 @@ data_files = [
[
THIS_CUBE_DIR
,
[
fname
for
fname
in
glob
(
'*.py'
)
if
fname
!=
'setup.py'
]],
]
# check for possible extended cube layout
for
dname
in
(
'entities'
,
'views'
,
'sobjects'
,
'hooks'
,
'schema'
,
'data'
,
'wdoc'
,
'i18n'
,
'migration'
):
if
isdir
(
dname
):
data_files
.
append
([
join
(
THIS_CUBE_DIR
,
dname
),
listdir
(
dname
)])
for
d
ir
name
in
(
'entities'
,
'views'
,
'sobjects'
,
'hooks'
,
'schema'
,
'data'
,
'i18n'
,
'migration'
,
'wdoc'
):
if
isdir
(
d
ir
name
):
data_files
.
append
([
join
(
THIS_CUBE_DIR
,
d
ir
name
),
listdir
(
d
ir
name
)])
# Note: here, you'll need to add subdirectories if you want
# them to be included in the debian package
__depends_cubes__
=
{}
__depends__
=
{
'cubicweb'
:
'>= 3.9.0'
,
'python-crypto'
:
None
,
'PIL'
:
None
,
}
__use__
=
tuple
(
__depends_cubes__
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment