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
User Deletion throws error "Password is too weak" #19857
Comments
Entering a wrong password should always show a wrong password message, even if it's to weak. |
In this case I don't think it's that the user is typing a wrong password, but the password being used for the password prompt is likely too weak? |
That would mean that the password the user is using for his account is too weak. Not sure if it is even possible to log in, in that case. |
FYI this looks like it's caused by a password encoding/decoding issue. I was able to reproduce it using the same password the user was using, if you need that password to reproduce please PM me. |
Closing this one in favor of #20021, as it contains some detailed information where the exact problem is. |
Attempting to delete a user in Matomo 4.12.0 can result in the following error after entering the admin password:

This results in the user not being deleted.
Error message text:
This password is too weak, please supply another value or reset it. #0 /var/www/html/plugins/UsersManager/UsersManager.php(190): Piwik\Plugins\UsersManager\UsersManager::checkBasicPasswordStrength('xx') #1 /var/www/html/plugins/Login/Auth.php(188): Piwik\Plugins\UsersManager\UsersManager::getPasswordHash('xx') #2 /var/www/html/plugins/Login/PasswordVerifier.php(53): Piwik\Plugins\Login\Auth->setPassword('xx') #3 /var/www/html/core/Plugin/API.php(134): Piwik\Plugins\Login\PasswordVerifier->isPasswordCorrect('user', 'xx') #4 /var/www/html/plugins/UsersManager/API.php(975): Piwik\Plugin\API->confirmCurrentUserPassword('xx') #5 [internal function]: Piwik\Plugins\UsersManager\API->deleteUser('user_to_delete', 'xx') #6 /var/www/html/core/API/Proxy.php(244): call_user_func_array(Array, Array) #7 /var/www/html/core/Context.php(28): Piwik\API\Proxy->Piwik\API\{closure}() #8 /var/www/html/core/API/Proxy.php(335): Piwik\Context::executeWithQueryParameters(Array, Object(Closure)) #9 /var/www/html/core/API/Request.php(267): Piwik\API\Proxy->call('\\Piwik\\Plugins\\...', 'deleteUser', Array) #10 /var/www/html/plugins/API/API.php(483): Piwik\API\Request->process() #11 [internal function]: Piwik\Plugins\API\API->getBulkRequest(Array) #12 /var/www/html/core/API/Proxy.php(244): call_user_func_array(Array, Array) #13 /var/www/html/core/Context.php(28): Piwik\API\Proxy->Piwik\API\{closure}() #14 /var/www/html/core/API/Proxy.php(335): Piwik\Context::executeWithQueryParameters(Array, Object(Closure)) #15 /var/www/html/core/API/Request.php(267): Piwik\API\Proxy->call('\\Piwik\\Plugins\\...', 'getBulkRequest', Array) #16 /var/www/html/plugins/API/Controller.php(45): Piwik\API\Request->process() #17 [internal function]: Piwik\Plugins\API\Controller->index() #18 /var/www/html/core/FrontController.php(631): call_user_func_array(Array, Array) #19 /var/www/html/core/FrontController.php(169): Piwik\FrontController->doDispatch('API', false, Array) #20 /var/www/html/core/dispatch.php(32): Piwik\FrontController->dispatch() #21 /var/www/html/index.php(25): require_once('/var/www/html/c...') #22 {main}
API, Actions, Annotations, BulkTracking, Contents, CoreAdminHome, CoreConsole, CoreHome, CorePluginsAdmin, CoreUpdater, CoreVisualizations, CoreVue, CustomDimensions, CustomJsTracker, CustomReports 4.1.0, CustomVariables 4.1.1, Dashboard, DevicePlugins, DevicesDetection, Diagnostics, Ecommerce, Events, Feedback, GeoIp2, Goals, Heartbeat, HeatmapSessionRecording 4.5.1, ImageGraph, Insights, Installation, Intl, IntranetGeoIP 4.0.1, IntranetMeasurable, InvalidateReports 4.1.1, LanguagesManager, Live, LogViewer 4.1.1, Login, LoginSaml 4.2.0, MarketingCampaignsReporting 4.1.3, Marketplace, MediaAnalytics 4.1.5, MobileMessaging, Modern 1.1.2, Monolog, Morpheus, MultiSites, Overlay, PagePerformance, PrivacyManager, Provider 4.0.5, Proxy, QueuedTracking 4.0.5, Referrers, Resolution, RollUpReporting 4.1.0, RssWidget, SEO, ScheduledReports, SearchEngineKeywordsPerformance 4.4.0, SegmentEditor, SitesManager, TagManager, TrackingCodeCustomizer 4.0.0, Transitions, UserCountry, UserCountryMap, UserId, UserLanguage, UsersFlow 4.1.1, UsersManager, VisitFrequency, VisitTime, VisitorInterest, VisitsSummary, WebsiteMeasurable, Widgetize, ExampleAPI
The text was updated successfully, but these errors were encountered: