Roberto Rosario
4617afafb2
Replace get_object_list() with self.object_list
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-12 01:25:53 -04:00
Roberto Rosario
f69fcbcc82
Move password set views to the authentication app
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-07 03:13:14 -04:00
Roberto Rosario
d7a5db711b
Add test and fix current user password change view
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-21 02:24:46 -04:00
Roberto Rosario
313311d008
Use Django's new class based authentication views
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-17 02:00:28 -04:00
Roberto Rosario
4d91d82515
Change how the HOME_VIEW setting is defined
...
HOME_VIEW is now COMMON_HOME_VIEW.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-11 22:01:14 -04:00
Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Roberto Rosario
b716971ba0
Add configuration option to change the project/installation URL. This is used in the password reset emails and in the default document mailing templates.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-10-17 21:34:48 -04:00
Roberto Rosario
4d53c9aec7
Code clean up.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-17 02:54:47 -04:00
Roberto Rosario
64ca5a623f
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-05 04:56:39 -04:00
Roberto Rosario
6594756c5b
Replace use of mayan.__title__ with common project title to ensure the overrided name is displayed in all views.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-28 03:48:51 -04:00
Roberto Rosario
69b80aff1d
Add support for blocking the changing of password for specify users.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-26 06:56:48 -04:00
Roberto Rosario
cc62988d4d
Fix post login redirection to honor the ?next= URL query string
...
argument. Thanks go to K.C. Wong (@dvusboy1) for the report and investigation.
Closes GitLab issue #489 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-04 01:36:57 -04:00
Michael Price
c7fda3447c
Unify the way to gather the project's metadata.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:28:52 -04:00
Roberto Rosario
4096b8b882
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-24 20:30:46 -04:00
Roberto Rosario
76539f9eb0
Use resolve_url instead of redirect to resolve the post
...
login URL in more ways.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-24 16:24:53 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
fd67219af7
Add password reset unit test.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-06 23:31:27 -04:00
Roberto Rosario
ad96863cd9
Move the login template under the authentication namespace.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-06 23:11:17 -04:00
Roberto Rosario
00d0184bad
Add support for requesting a password reset email.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-06 23:09:46 -04:00
Roberto Rosario
ff40b1effc
Add a "Remember me" checkbox to the username and email login forms.
...
Add AUTHENTICATION_MAXIMUM_SESSION_LENGTH configuration setting for the maximum
time an user's login session will remain valid. Defaults to 30 days.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-06 12:50:22 -04:00
Roberto Rosario
8614bc4bfc
Remove included login required middleware using django-stronghold instead ( http://mikegrouchy.com/django-stronghold/ ). GitLab Issue #206
2016-02-04 15:33:20 -04:00
Roberto Rosario
4527563d89
PEP8 cleanups, specially E501 line too long.
2015-07-22 18:21:37 -04:00
Roberto Rosario
e4623fadcd
PEP8 cleanups
2015-06-23 02:23:23 -04:00
Roberto Rosario
78198f3398
Smart settings refactor
2015-06-22 21:04:06 -04:00
Roberto Rosario
23fc9f1e36
Merge main and common apps, extract authentication functionality to new authentication app. Closes issues #179 and #180
2015-04-06 16:09:54 -04:00