aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/basic_auth
Commit message (Collapse)AuthorAgeFilesLines
* Replace py-bcrypt with bcrypt.Elisei Roca2021-10-111-5/+4
| | | | | | | | | Almost a drop-in replacement, only needed some str - byte conversions. The former has not seen a release since 2013, the latter is active with a last release on Aug. 16th 2020. Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
* Apply pyupgrade --py36-plus.Ben Sturmfels2021-09-231-2/+2
| | | | This removes some 'u' prefixes and converts simple format() calls to f-strings.
* Remove additional mentions of persona in templates and docs.Ben Sturmfels2021-04-231-2/+1
|
* Remove remaining imports/calls to six not automatically removed by pyupgrade.Ben Sturmfels2021-03-051-2/+0
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-052-7/+7
|
* Spell-check the entire documentation.Ben Sturmfels2016-09-181-1/+1
|
* No length check for login formJonathan Sandoval2016-04-071-1/+1
|
* Fix #5451 - add_message inconsistenciesAndrew Browning2016-04-021-11/+16
| | | | | Reformat add_message function calls for consistency and PEP8 line continuations.
* Issue #5394: Wrong url for forgot_password in basic_auth pluginChristopher Allan Webber2016-01-211-1/+2
| | | | Fix by jerome. Thank you!
* Change codebase to query or create correct User modelJessica Tallon2015-07-312-8/+8
| | | | | | | The code base had many references to User.username and other specific to LocalUser attributes as that was the way it use to exist. This updates those to query on the generic User model but filtering by attributes on the LocalUser.
* wtforms.fields.TextField was deprecatedJakob Kramer2015-03-121-4/+4
| | | | | | | WTForms documentation: > The TextField alias for StringField is deprecated. Signed-off-by: Berker Peksag <berker.peksag@gmail.com>
* Merge branch 'master' into merge-python3-portChristopher Allan Webber2014-09-161-9/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Has some issues, will iteratively fix! Conflicts: mediagoblin/gmg_commands/__init__.py mediagoblin/gmg_commands/deletemedia.py mediagoblin/gmg_commands/users.py mediagoblin/oauth/views.py mediagoblin/plugins/api/views.py mediagoblin/tests/test_api.py mediagoblin/tests/test_edit.py mediagoblin/tests/test_oauth1.py mediagoblin/tests/test_util.py mediagoblin/tools/mail.py mediagoblin/webfinger/views.py setup.py
| * Fixes #899 : DeprecationWarning about Required going away in WTForms 3.0. ↵Loïc Le Ninan2014-06-131-9/+9
| | | | | | | | Replaced Required with InputRequired.
* | Use six.text_type instead of unicode().Berker Peksag2014-06-021-1/+3
|/ | | | I will be switch to use ``from __future__ import unicode_literals`` later.
* accoutn -> account. Typo fix caught by Laura Arjona! Thanks!Christopher Allan Webber2013-11-041-1/+1
| | | | This commit sponsored by Nick Adams! Thank you!
* Fixing up the email verified stuff to reflect the email_verified stuff!Christopher Allan Webber2013-10-081-8/+14
| | | | This commit sponsored by Derek Holdaway. Thanks!
* fixed some typos and missed importsRodney Ewing2013-08-162-4/+8
|
* moved create account link on login page to a hookRodney Ewing2013-08-162-1/+30
|
* deleted misplaced templateRodney Ewing2013-08-161-29/+0
|
* used template hooks instead of hardcoding basic_auth functionality into ↵Rodney Ewing2013-08-165-0/+106
| | | | templates
* moved change_pass to basic_auth and fixed some typos with the moving of ↵Rodney Ewing2013-08-166-2/+133
| | | | forgot pass
* moved forgot pass to basic_auth pluginRodney Ewing2013-08-167-0/+359
|
* Merge branch 'auth_docs'Rodney Ewing2013-08-161-0/+24
|\ | | | | | | | | Conflicts: docs/source/index.rst
| * added basic_auth and openid docs to index and link them togetherRodney Ewing2013-07-091-2/+4
| |
| * basic_auth documentationRodney Ewing2013-07-091-0/+22
| |
* | updated to new render_divs macroRodney Ewing2013-07-111-1/+2
| |
* | add login option: stay_logged_inJakob Kramer2013-07-111-0/+2
| | | | | | | | | | | | | | As proposed in issue #354; it adds an attribute max_age to mediagoblin.tools.session.Session that is passed to response.set_cookie; max_age is set to 30 days if the checkbox is selected
* | only check password if there is a store_hashRodney Ewing2013-07-101-1/+4
|/
* use template hooks instead of hardcoding in templatesRodney Ewing2013-07-031-9/+0
|
* merge --squash openid branch to take care of a false merge commit in theRodney Ewing2013-07-031-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | basic_auth branch that openid is forked from Commits squashed together (in reverse chronological order): - do the label thing only for boolean fields - made edit_account to autofocus on the first field - added feature to render_divs where if field.label == '' then it will render form.description the same a render_label - added allow_registration check - refactored create_user - removed verification_key from create_user - removed get_user from openid - cleanup after removing openid from template_env.globals - fix for werkzueg 0.9.1 - cleanup after merge - more tests - restored openid extra_validation just for safety - tests for openid - deleted openid extra_validation - passed next parameter in session for openid - fixed a bug that was deleting the messages - implemented openid store using sqlalchemy - ask openid provider for 'nickname' to prefill username in registration form - refactored delete openid url to work with generic urls such as google and to not allow a user to delete a url if it is there only one and they don't have a pw - refactored login to register user workflow, which fixed a problem where the 'or register with a password link' wasn't showing up when the finish_login view called the register view because there wasn't any redirect. - added the ability to remove openid's - added the ability to add openids to an existing account - refactored start_login and finish_login views - modified edit_account.html to use render_divs - modified gmg/edit/views to behave appropriatly if no password authentication is enabled. moved the update email stuff to it's own funtion to make edit_account view cleaner. edit_account now modifies the form depending on the plugins. - minor typos - added retrieving email from openid provider - moved allow_registration check to a decorator - moved check if auth is enabled to a decorator - changed openid user registration to go through login first - cleanup after merge - modified verification emails to use itsdangerous tokens - added error handling on bad token, fixed route, and added tests - added support for user to change email address - added link to login view openid/password in login template - updated openid get_user function - modified get_user function to take kwargs instead of username - no need for user might be email kwarg in check_login_simple - added gen_password_hash and check_password functions to auth/__init__ - added focus to form input - made imports fully qualified - modified basic_auth.check_login to check that the user has a pw_hash first - changed occurances of form.data['whatever'] to form.whatever.data - convert tabs to spaces in register template, remove unsed templates, and fixed trans tags in templates - in process of openid login. it works, but needs major imporvements - make password field required in basic_auth form - check if password field present in basic_auth create_user - modified openid create_user function - modified models based on Elronds suggestions - changed register form action to a variable to be passed in by the view using the template - openid plugin v0, still need to authenticate via openid. - added a register_user function to be able to use in a plugin's register view, and modified auth/views.register to redirect to openid/register if appropriate. - Modified basic_auth plugin to work with modified auth plugin hooks. Added context variables. Removed basic_auth/tools which was previously renamed to basic_auth/lib. - modified auth/__init__ hooks to work better with multiple plugins. Removed auth/lib.py. And added a basic_extra_verification function that all plugins will use. - added models and migrations for openid plugin
* fixing the config section we pull things out of for basic_authChristopher Allan Webber2013-07-031-1/+1
|
* Merge remote-tracking branch 'upstream/master' into authRodney Ewing2013-06-251-3/+0
| | | | | | | | | | | | Conflicts: mediagoblin/app.py mediagoblin/auth/forms.py mediagoblin/auth/tools.py mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/edit/views.py mediagoblin/plugins/basic_auth/tools.py mediagoblin/tests/test_edit.py
* changes after cwebb's reviewRodney Ewing2013-06-211-3/+1
|
* modified get_user function to take kwargs instead of usernameRodney Ewing2013-05-271-8/+10
|
* no need for check_login with the new check_login_simple functionRodney Ewing2013-05-271-12/+3
|
* renamed lib to toolsRodney Ewing2013-05-272-6/+6
|
* cleanup after mergeRodney Ewing2013-05-271-10/+8
|
* moving forgot_password views back to gmg/auth and cleanupRodney Ewing2013-05-246-306/+3
|
* added gen_password_hash and check_password functions to auth/__init__Rodney Ewing2013-05-241-0/+5
|
* modified basic_auth.check_login to check that the user has a pw_hash firstRodney Ewing2013-05-241-3/+4
|
* changed occurances of form.data['whatever'] to form.whatever.dataRodney Ewing2013-05-241-9/+10
| | | | | | Conflicts: mediagoblin/plugins/basic_auth/__init__.py mediagoblin/plugins/openid/__init__.py
* check if password field present in basic_auth create_userRodney Ewing2013-05-241-1/+1
|
* Modified basic_auth plugin to work with modified auth plugin hooks. Added ↵Rodney Ewing2013-05-242-32/+27
| | | | context variables. Removed basic_auth/tools which was previously renamed to basic_auth/lib.
* added Copyright header to basic_auth/forms.pyRodney Ewing2013-05-241-0/+15
|
* moved fake_login_attempt to pluginsRodney Ewing2013-05-242-0/+21
|
* renamed hook as to no conflict with existing hook namesRodney Ewing2013-05-241-1/+1
|
* renamed basic_auth/tools to basic_auth/libRodney Ewing2013-05-242-4/+103
|
* modified check_login function to return None instead of False to be able to ↵Rodney Ewing2013-05-241-1/+4
| | | | have multiple plugins check_login
* moved bcrypt_gen_password_hash to basic_auth/tools and added ↵Rodney Ewing2013-05-241-2/+6
| | | | gen_password_hash function to auth/__init__
* moved bcrypt_check_password to basic_auth/tools from auth/libRodney Ewing2013-05-241-2/+3
|