Skip to main content

devpi-passwd-reset: password reset view for devpi-web

Project description

devpi-passwd-reset: password reset view for devpi-web

This plugin adds a new view allowing users to reset their passwords.

Installation

devpi-passwd-reset needs to be installed alongside devpi-web.

You can install it with:

pip install devpi-passwd-reset

There are no further installation steps needed as devpi-server will automatically discover the plugin through calling hooks using the setuptools entry points mechanism.

Usage

In a default installation, the view would be accessible at http://localhost:3141/+password-reset.

Users can enter a user name or email address. If a matching user exists and has the email set, a mail is sent with a link to set a new password. The link is valid for 24h as long as the password wasn’t changed in the meantime.

Configuration

You have to configure mail server settings by providing --passwd-reset-config=path_to_config.

Create a yaml file with a dictionary containing another dictionary under the pyramid_mailer key.

You must at least provide the mail.default_sender setting. By default mail.host is localhost and mail.port is 25.

See http://pythonhosted.org/pyramid_mailer/#configuration on configuration options available.

Example config:

pyramid_mailer:
    mail.port: 8025
    mail.default_sender: mail@example.com

devpi-passwd-reset plugin hooks

Plugins can add password validation to enforce policies using the devpi_passwd_reset entry point in setup.py.

def devpipasswdreset_validate(password):
    """Called to validate a password.

      Raises ValueError which is used as message to the user.
    """

Changelog

2.0.0 - 2023-12-19

  • drop support for Python <= 3.6.

  • require devpi-server>=6.0.0

1.0.0 - 2016-06-29

  • initial release

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

devpi-passwd-reset-2.0.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

devpi_passwd_reset-2.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file devpi-passwd-reset-2.0.0.tar.gz.

File metadata

  • Download URL: devpi-passwd-reset-2.0.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: devpi-server/6.10.0.dev0 (py3.8.11; linux)

File hashes

Hashes for devpi-passwd-reset-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c750f423d39ed5b8b1fd664c22c82379a69d8f5adf2becc91443143deabdae24
MD5 4c29ae5fa700bb2e3c76ec46b06cde10
BLAKE2b-256 4752c5269dd3de95103ffe4c2a7207ca19abc1b9bda2cd66061b5a6de9b2477d

See more details on using hashes here.

File details

Details for the file devpi_passwd_reset-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for devpi_passwd_reset-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acfcd79a350a80d0c0e4e740a506c657b6393fc39cb6725435a6213b74b0869f
MD5 e810afcc01c7aa2bbfa1beb96b21481a
BLAKE2b-256 49360746693ec0be8dd8ead3ac9ccb3e93f5ff21c9fa40840e1e51133454b537

See more details on using hashes here.

Supported by

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