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

Do not expose private key in ACP module (phpBB 4.0 consistent). #14

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

rxu
Copy link
Contributor

@rxu rxu commented Jan 4, 2024

No description provided.

@@ -117,6 +117,12 @@ public function save_settings()
'wpn_webpush_vapid_private'=> ['validate' => 'string:25:255', 'lang' => 'WEBPUSH_VAPID_PRIVATE'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just set this to 'validate' => 'password:25:255' and that will handle everything?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be handy but there's no such a thing in config vars validator. build_cfg_template can handle displaying password as asterixes but preventing its updating and validation is still handled within dedicated xCP module.

@iMattPro iMattPro merged commit d25a683 into phpbb-extensions:main Jan 4, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants