I would like to change or add a new username and password for the blog.db (sqlite). I see where the initial database was created, the password and salt were added manually. I would like to change the password manually and have it work with the authentication so I need to know how to come up with the hash and salt field values for my user. Thanks
Page 1 of 1
Change password in blog.db
#2
Posted 01 April 2010 - 03:28 PM
eam, on 29 March 2010 - 01:25 PM, said:
I would like to change or add a new username and password for the blog.db (sqlite). I see where the initial database was created, the password and salt were added manually. I would like to change the password manually and have it work with the authentication so I need to know how to come up with the hash and salt field values for my user. Thanks
Never mind, I figured it out. If anyone is interested, let me know.
#5
Posted 02 March 2013 - 12:48 PM
<?php $user = new User(); ?>
<?php echo crypt('yiinotes', $user->hashPassword('yiinotes')); ?>
Share this topic:
Page 1 of 1

Help












