Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_user recommends private functions #1076

Open
sr-verde opened this issue Mar 6, 2025 · 1 comment
Open

create_user recommends private functions #1076

sr-verde opened this issue Mar 6, 2025 · 1 comment

Comments

@sr-verde
Copy link
Contributor

sr-verde commented Mar 6, 2025

Hey everyone,
the documentation of UserDatastore.create_user recommends

enorm = app.security._mail_util.validate(email)

and

pbad, pnorm = app.security._password_util.validate(password, True)

But both _password_util and _mail_util are underscored and by PEP 8 therefore marked for internal use.

Should this be changed?

@jwag956
Copy link
Collaborator

jwag956 commented Mar 9, 2025

Good point - let me look into just how I'd like to solve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants