Web Host Pro Posted December 6, 2022 Share Posted December 6, 2022 I'm sure this has been said here, probably by me. And probably ignored. But how do you reset a customer's password without using email again? Unless it's your first day on the interweb you know email is not reliable and people lose their emails. So there has to be another way. Obviously it should be an option for admins to do but I don't see the option for this still. I searched for it and the community search could not find a thread for it which is add weird and not allowing an admin to do this from WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 6, 2022 Share Posted December 6, 2022 They removed admins ability to do password resets, for "security reasons". Personally I think something broke when they implemented the user/owner/contact scheme and aren't willing to tear it back apart to fix it. Other than editing in the database, I don't know of a method to change one any longer. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted December 6, 2022 Share Posted December 6, 2022 You can do the following to set a specific password for a user: <?php require 'init.php'; use WHMCS\User\User; $password = '!myStr0ngpAssword$'; // Set the new password $newPasswordHash = password_hash($password, PASSWORD_BCRYPT); // Hash the password $user = User::find(1); // The ID of the user $user->password = $newPasswordHash; $user->save(); It actually shouldn't be too big of a deal creating a module that does exactly this to be done from the admin area. Doesn't even need to be a module, could simply be a hook. 2 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted December 9, 2022 Share Posted December 9, 2022 https://marketplace.whmcs.com/product/6630-client-password-changer 1 Quote Link to comment Share on other sites More sharing options...
Dkuzik Posted January 11, 2023 Share Posted January 11, 2023 https://github.com/leemahoney3/whmcs-client-password-changer 1 Quote Link to comment Share on other sites More sharing options...
Web Host Pro Posted January 11, 2023 Author Share Posted January 11, 2023 12 hours ago, Dkuzik said: https://github.com/leemahoney3/whmcs-client-password-changer That's really amazing of you, I'll definitely buy you a coffee when I have time to test it 🙂 0 Quote Link to comment Share on other sites More sharing options...
Dkuzik Posted January 11, 2023 Share Posted January 11, 2023 Buy him one. Already had been testing he did make a revision. It doesn't work for user passwords, just the client 0 Quote Link to comment Share on other sites More sharing options...
inoserver Posted February 20, 2023 Share Posted February 20, 2023 Tested on 8.6.1 and works like a charm. 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted July 21, 2023 Share Posted July 21, 2023 It seems https://github.com/leemahoney3/whmcs-client-password-changer is not available anymore. Does anyone know a way to do this? Maybe manually via phpMyAdmin? 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted July 21, 2023 Share Posted July 21, 2023 @Juanzo you should be able to use this: https://github.com/DennisSkov/WHMCSPasswordChange/ 0 Quote Link to comment Share on other sites More sharing options...
Dkuzik Posted July 22, 2023 Share Posted July 22, 2023 WHMCSServices Module Garden both are good modules paid but worth it if u always do https://github.com/DennisSkov/WHMCSPasswordChange/ this one is free. not complete. cant delete below 0 Quote Link to comment Share on other sites More sharing options...
WGS Posted July 22, 2023 Share Posted July 22, 2023 you can use this module https://whmcsglobalservices.com/reset-client-password-whmcs-module/ 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted July 22, 2023 Share Posted July 22, 2023 Thanks for everyone sharing information. I've uploaded https://github.com/DennisSkov/WHMCSPasswordChange/ to addons directory but did not show up to enable. Yet, I wonder if there is a way via phpMyAdmin or something simpler, we just need to manually update a specific client that appears to be very non-tech saavy and is unable to reset their password. 0 Quote Link to comment Share on other sites More sharing options...
hmaddy Posted July 22, 2023 Share Posted July 22, 2023 Error: ParseError: syntax error, unexpected 'string' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /home/hostmail/public_html/clients/modules/addons/PasswordChange/lib/PasswordGenerator.php:10 Stack trace: #0 [internal function]: WHMCS\Module\Autoloader->moduleClassLoader('WHMCS\\Module\\Ad...') #1 /home/hostmail/public_html/clients/modules/addons/PasswordChange/lib/Admin/Controller.php(32): spl_autoload_call('WHMCS\\Module\\Ad...') #2 /home/hostmail/public_html/clients/modules/addons/PasswordChange/lib/Admin/AdminDispatcher.php(18): WHMCS\Module\Addon\PasswordChange\Admin\Controller->changePassword(Array) #3 /home/hostmail/public_html/clients/modules/addons/PasswordChange/PasswordChange.php(65): WHMCS\Module\Addon\PasswordChange\Admin\AdminDispatcher->dispatch('changePassword', Array) #4 /home/hostmail/public_html/clients/shank/addonmodules.php(0): PasswordChange_output(Array) #5 {main} 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted July 22, 2023 Share Posted July 22, 2023 Make sure you're using PHP 8. 0 Quote Link to comment Share on other sites More sharing options...
Dkuzik Posted July 22, 2023 Share Posted July 22, 2023 for that hook i am not sure probably for older whmcs and php versions. I would personally use WGS or another paid service $25 and under. Inexpensive. If you want Lees module see attached. clientpassword.tar.gz 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted July 22, 2023 Share Posted July 22, 2023 1 hour ago, Dkuzik said: for that hook i am not sure probably for older whmcs and php versions. I would personally use WGS or another paid service $25 and under. Inexpensive. If you want Lees module see attached. clientpassword.tar.gz 14.22 kB · 1 download Older version and had some bugs so took it down, but feel free to use it/expand on it 🙂 0 Quote Link to comment Share on other sites More sharing options...
WGS Posted May 16, 2024 Share Posted May 16, 2024 On 7/22/2023 at 9:14 AM, WGS said: you can use this module https://whmcsglobalservices.com/reset-client-password-whmcs-module/ Just to update our module is fully compatible with WHMCS8.10.x 0 Quote Link to comment Share on other sites More sharing options...
Brukenet Posted September 6, 2024 Share Posted September 6, 2024 Running into something weird with this. I have a new user account that I set up for a client. They can't log in. I go to the login page and I can't log in either. They request a password reset, the email never arrives. I set up a new test account and everything works just fine. So, I go to the `tblusers` table in the database and I look at the hash for the test account's password, then copy/paste it into the password field for the problematic user's account. It doesn't work. I run a BCRYPT encryption on the desired password to generate a hash, then copy/paste that into the password field for the problematic user's account. It doesn't work. Again, every other user account seems to be working. Is there some sort of unique per-user salt on the password encryption that would prevent a direct copy/paste from a password field that's known to the problematic one? Or is something weirder going on? 0 Quote Link to comment Share on other sites More sharing options...
Web Host Pro Posted September 9, 2024 Author Share Posted September 9, 2024 I can't say how reliable it is, but there's a free plugin that might help https://github.com/mahfuzreham/WHMCSPasswordChange I don't think WHMCS will add this option anytime soon still, I can't imagine why. Personally, I think WHMCS likes to make our lives difficult. 0 Quote Link to comment Share on other sites More sharing options...
WGS Posted September 9, 2024 Share Posted September 9, 2024 Our module is up to date https://whmcsglobalservices.com/reset-client-password-whmcs-module/ 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted September 9, 2024 Share Posted September 9, 2024 This module also works just fine: 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.