Replies: 4 comments 16 replies
-
Hello, what is the set value of public string $hashAlgorithm = PASSWORD_DEFAULT; If the problem is not solved, please provide more about the PHP version,Sheild version, how to install and etc? |
Beta Was this translation helpful? Give feedback.
-
yes $hashAlgorithm is PASSWORD_DEFAULT PHP: 7.4.0 — CodeIgniter: 4.2.1 maybe it is a issue with codeigniter4/settings 2.1 |
Beta Was this translation helpful? Give feedback.
-
Install the latest |
Beta Was this translation helpful? Give feedback.
-
Probably your PHP is too old.
Please try to check the value of bash-3.2$ php -v
PHP 7.4.30 (cli) (built: Jun 9 2022 09:30:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v3.1.5, Copyright (c) 2002-2022, by Derick Rethans
with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies bash-3.2$ php -a
Interactive shell
php > var_dump(PASSWORD_DEFAULT);
php shell code:1:
string(2) "2y"
php > |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hello
i try shield in my project and i have this error
`CodeIgniter v4.2.1 Command Line Tool - Server Time:
An uncaught Exception was encountered
Type: TypeError
Message: Typed property CodeIgniter\Shield\Config\Auth::$hashAlgorithm must be string, null used
Filename: C:\wamp64\codeigniter4\vendor\codeigniter4\framework\system\Config\Factories.php
Line Number: 126`
Beta Was this translation helpful? Give feedback.
All reactions