undefined constant PASSWORD_ARGON2I - development

undefined constant PASSWORD_ARGON2I

I have trouble in using new password hashing argon in laravel. I received the error message below

Use of undefined constant PASSWORD_ARGON2I – assumed
‘PASSWORD_ARGON2I’

my php version as below

PHP 7.2.4 (cli) (built: Apr 12 2018 02:49:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.4, Copyright (c) 1999-2018, by Zend Technologies

I’m using Laravel Valet with NginX and HomeBrew

The weird part is I’m able to seed users using app(‘hash’)->make(123456) and saved in argon2 hash. But when I try to login / reset password, it prompts error.

Did I missed any configuration in laravel / server side?

Thanks



from Laravel Questions and Answers https://laravelquestions.com/php/undefined-constant-password_argon2i/
via Lzo Media

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome