Skip to main content

About resetpassword

resetpassword is a Pluggable application for TurboGears2 that permits to change user password or reset it when lost.

Installing

resetpassword can be installed both from pypi or from bitbucket:

pip install tgapp-resetpassword

should just work for most of the users

Plugging resetpassword

In your application config/app_cfg.py import plug:

from tgext.pluggable import plug

Then at the end of the file call plug with resetpassword:

plug(base_config, 'resetpassword')

You will be able to access the plugged application at http://localhost:8080/resetpassword.

Some options are available that can be set on .ini configuration file for your application. At least one option is required to make activation emails work:

  • resetpassword.email_sender -> Outgoing mails sender

If you are not using TurboMail a few more configuration options must be set to make activation email work:

  • resetpassword.smtp_host -> SMTP server to use to send emails

  • resetpassword.smtp_port -> SMTP server port

  • resetpassword.smtp_login -> Login for authentication on SMTP server

  • resetpassword.smtp_passwd -> Password for authentication on SMTP server

Plugin Options

When plugging tgapp-resetpassword the following options can be passed to the plug call:

  • reset_password.reset_password_form -> Full python path of the form class to use for Reset Password form. By default resetpassword.lib.forms.ResetPasswordForm is used.

  • reset_password.new_password_form -> Full python path of the form class to use for New Password form. By default registration.lib.forms.NewPasswordForm is used.

Available Hooks

resetpassword makes available a some hooks which will be called during some actions to alter the default behavior of the appplications:

  • resetpassword.on_request(user, email_data, reset_link)

  • resetpassword.before_render_change_password_template(user, deserialized_data)

  • resetpassword.before_redirect(redirect_url)

Exposed Templates

The templates used by resetpassword and that can be replaced with tgext.pluggable.replace_template are:

  • resetpassword.templates.index -> Page with password reset request form

  • resetpassword.templates.change_password -> Page with change password request

Release files for tgapp-resetpassword 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tgapp-resetpassword 0.1.4
File Size Uploaded
tgapp-resetpassword-0.1.4.tar.gz 10.5 kB Details

Release files / tgapp-resetpassword-0.1.4.tar.gz

Download URL tgapp-resetpassword-0.1.4.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f58a208ba1a882e8c2fe182308edf797a5f56623ddcfee6b20f5e1410f99a3fd
BLAKE2b-256 checksum
How to use checksums
ae195d670eac2aa03986a5de3103406a5cfb10c33a60b54fa70ded433837b9b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.10

1 release file

0.1.9

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page