Call to undefined method Joomla\CMS\User\UserHelper::getCryptedPassword()

This forum is for general questions about extensions for Joomla! 4.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
User avatar
negarkhane
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 148
Joined: Sat Aug 20, 2005 4:38 pm
Location: Iran
Contact:

Call to undefined method Joomla\CMS\User\UserHelper::getCryptedPassword()

Post by negarkhane » Sat Oct 23, 2021 5:13 am

Please help me to change this function in Joomla 4
Call to undefined method Joomla\CMS\User\UserHelper::getCryptedPassword()
i use this function to create new password in custom component in joomla 3.x but dosnot work in joomla 4

ghazal
Joomla! Explorer
Joomla! Explorer
Posts: 322
Joined: Fri Aug 19, 2005 12:12 pm
Location: Out of my mind ...sometimes

Re: Call to undefined method Joomla\CMS\User\UserHelper::getCryptedPassword()

Post by ghazal » Sat Oct 23, 2021 9:45 am

This method is deprecated ->
https://api.joomla.org/cms-3/classes/Jo ... edPassword

Check:
/libraries/src/User/UserHelper.php

Check:
https://docs.joomla.org/Potential_backw ... n_Joomla_4

JUserHelper::getCryptedPassword has been removed. Joomla 4 only supports hashing with the native PHP password_hash function (via JUserHelper::hashPassword (available since Joomla 3.2.1))


Locked

Return to “Extensions for Joomla! 4.x”